The protocol for the new origin
The host for the new origin
The port number for the new origin, or 0 to indicate the default port for protocol
Gets the hostname of origin
. It is reasonable for this to be %NULL
if its protocol does not require a host component.
Gets the port of origin
. This function will always return 0 if the
port is the default port for the given protocol. For example,
http://example.com has the same security origin as
http://example.com:80, and this function will return 0 for a
#WebKitSecurityOrigin constructed from either URI.
Gets the protocol of origin
.
This function returns %FALSE. #WebKitSecurityOrigin is now a simple wrapper around a <protocol, host, port> triplet, and no longer represents an origin as defined by web standards that may be opaque.
Atomically increments the reference count of origin
by one.
This function is MT-safe and may be called from any thread.
Gets a string representation of origin
. The string representation
is a valid URI with only protocol, host, and port components, or
%NULL.
Atomically decrements the reference count of origin
by one.
If the reference count drops to 0, all memory allocated by
#WebKitSecurityOrigin is released. This function is MT-safe and may be
called from any thread.
Create a new security origin from the provided protocol, host and port.
The protocol for the new origin
The host for the new origin
The port number for the new origin, or 0 to indicate the default port for protocol
Create a new security origin from the provided URI. Components of
uri
other than protocol, host, and port do not affect the created
#WebKitSecurityOrigin.
The URI for the new origin
Create a new security origin from the provided protocol, host and port.