WebKitSecurityOrigin

WebKitSecurityOrigin — A security boundary for web sites

Synopsis

                    WebKitSecurityOrigin;
GList *             webkit_security_origin_get_all_web_databases
                                                        (WebKitSecurityOrigin *securityOrigin);
const gchar *       webkit_security_origin_get_host     (WebKitSecurityOrigin *securityOrigin);
guint               webkit_security_origin_get_port     (WebKitSecurityOrigin *securityOrigin);
const gchar *       webkit_security_origin_get_protocol (WebKitSecurityOrigin *securityOrigin);
GType               webkit_security_origin_get_type     (void);
guint64             webkit_security_origin_get_web_database_quota
                                                        (WebKitSecurityOrigin *securityOrigin);
guint64             webkit_security_origin_get_web_database_usage
                                                        (WebKitSecurityOrigin *securityOrigin);
void                webkit_security_origin_set_web_database_quota
                                                        (WebKitSecurityOrigin *securityOrigin,
                                                         guint64 quota);

Description

WebKitSecurityOrigin is a representation of a security domain defined by web sites. An origin consists of a host name, a protocol, and a port number. Web sites with the same security origin can access each other's resources for client-side scripting or database access.

Use webkit_web_frame_get_security_origin to get the security origin of a WebKitWebFrame.

Database quotas and usages are also defined per security origin. The cumulative disk usage of an origin's databases may be retrieved with webkit_security_origin_get_web_database_usage. An origin's quota can be adjusted with webkit_security_origin_set_web_database_quota.

Details

WebKitSecurityOrigin

typedef struct {
    GObject parent_instance;
} WebKitSecurityOrigin;


webkit_security_origin_get_all_web_databases ()

GList *             webkit_security_origin_get_all_web_databases
                                                        (WebKitSecurityOrigin *securityOrigin);

Returns a list of all Web Databases in the security origin.

securityOrigin :

Returns :

a GList of databases in the security origin.

Since 1.1.14


webkit_security_origin_get_host ()

const gchar *       webkit_security_origin_get_host     (WebKitSecurityOrigin *securityOrigin);

Returns the hostname for the security origin.

securityOrigin :

Returns :

the hostname for the security origin

Since 1.1.14


webkit_security_origin_get_port ()

guint               webkit_security_origin_get_port     (WebKitSecurityOrigin *securityOrigin);

Returns the port for the security origin.

securityOrigin :

Returns :

the port for the security origin

Since 1.1.14


webkit_security_origin_get_protocol ()

const gchar *       webkit_security_origin_get_protocol (WebKitSecurityOrigin *securityOrigin);

Returns the protocol for the security origin.

securityOrigin :

Returns :

the protocol for the security origin

Since 1.1.14


webkit_security_origin_get_type ()

GType               webkit_security_origin_get_type     (void);

Returns :


webkit_security_origin_get_web_database_quota ()

guint64             webkit_security_origin_get_web_database_quota
                                                        (WebKitSecurityOrigin *securityOrigin);

Returns the quota for Web Database storage of the security origin in bytes.

securityOrigin :

Returns :

the Web Database quota

Since 1.1.14


webkit_security_origin_get_web_database_usage ()

guint64             webkit_security_origin_get_web_database_usage
                                                        (WebKitSecurityOrigin *securityOrigin);

Returns the cumulative size of all Web Database database's in the origin in bytes.

securityOrigin :

Returns :

the cumulative size of all databases

Since 1.1.14


webkit_security_origin_set_web_database_quota ()

void                webkit_security_origin_set_web_database_quota
                                                        (WebKitSecurityOrigin *securityOrigin,
                                                         guint64 quota);

Adjust the quota for Web Database storage of the security origin

securityOrigin :

quota :

a new Web Database quota in bytes

Since 1.1.14