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);

Object Hierarchy

  GObject
   +----WebKitSecurityOrigin

Properties

  "host"                     gchar*                : Read
  "port"                     guint                 : Read
  "protocol"                 gchar*                : Read
  "web-database-quota"       guint64               : Read / Write
  "web-database-usage"       guint64               : Read

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 _WebKitSecurityOrigin 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 :

a WebKitSecurityOrigin

Returns :

a GList of databases in the security origin. [transfer container][element-type WebKitWebDatabase]

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 :

a WebKitSecurityOrigin

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 :

a WebKitSecurityOrigin

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 :

a WebKitSecurityOrigin

Returns :

the protocol for the security origin

Since 1.1.14


webkit_security_origin_get_type ()

GType               webkit_security_origin_get_type     (void);


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 :

a WebKitSecurityOrigin

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 :

a WebKitSecurityOrigin

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 :

a WebKitSecurityOrigin

quota :

a new Web Database quota in bytes

Since 1.1.14

Property Details

The "host" property

  "host"                     gchar*                : Read

The host of the security origin.

Default value: NULL

Since 1.1.14


The "port" property

  "port"                     guint                 : Read

The port of the security origin.

Allowed values: <= 65535

Default value: 0

Since 1.1.14


The "protocol" property

  "protocol"                 gchar*                : Read

The protocol of the security origin.

Default value: NULL

Since 1.1.14


The "web-database-quota" property

  "web-database-quota"       guint64               : Read / Write

The web database qouta of the security origin in bytes.

Default value: 0

Since 1.1.14


The "web-database-usage" property

  "web-database-usage"       guint64               : Read

The cumulative size of all web databases in the security origin in bytes.

Default value: 0

Since 1.1.14