AppleOpenSource/WebKit2-7609.3.5.1.3/UIProcess/API/glib/WebKitSecurityOrigin.cpp
/**
 * webkit_security_origin_get_port:
 * @origin: a #WebKitSecurityOrigin
 *
 * 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. It will also
 * return 0 if @origin is opaque.
 *
 * Returns: The port of the #WebKitSecurityOrigin.
 *
 * Since: 2.16
 */


Gets the port of @origin. This function will always return 0 if the
port is the default port for the given protocol.

The port of the #WebKitSecurityOrigin.


Gets the port of @origin . This function will always return 0 if the port is the default port for the given protocol . The port of the #WebKitSecurityOrigin .
guint16 webkit_security_origin_get_port(WebKitSecurityOrigin* origin)
{
    g_return_val_if_fail(origin, 0);
    return origin->securityOrigin->port().valueOr(0);
}
guint16 webkit_security_origin_get_port ( WebKitSecurityOrigin * origin ) { g_return_val_if_fail ( origin , 0 ) ; return origin -> securityOrigin -> port ( ) . valueOr ( 0 ) ; }
webkit_security_origin_get_port:
 @origin: a #WebKitSecurityOrigin
webkit_security_origin_get_port : @origin : a #WebKitSecurityOrigin