3.22 <WebKitWebsiteData>

Structure: <WebKitWebsiteData>

Data stored locally by a web site.

WebKitWebsiteData represents data stored in the client by a particular website. A website is normally a set of URLs grouped by domain name. You can get the website name, which is usually the domain, with website-data:get-name. Documents loaded from the file system, like file:// URIs, are all grouped in the same WebKitWebsiteData with the name "Local files".

A website can store different types of data in the client side. <WebKitWebsiteDataTypes> is an enum containing all the possible data types; use website-data:get-types to get the bitmask of data types. It’s also possible to know the size of the data stored for some of the <WebKitWebsiteDataTypes> by using website-data:get-size.

A list of WebKitWebsiteData can be retrieved with website-data-manager:fetch. See <WebKitWebsiteDataManager> for more information.

Procedures

Method: website-data:get-name self ⇒ %return
Method: get-name self ⇒ %return

Gets the name of <WebKitWebsiteData>.

This is the website name, normally represented by a domain or host name. All local documents are grouped in the same <WebKitWebsiteData> using the name "Local files".

self

Passed: a <WebKitWebsiteData>.

a <WebKitWebsiteData>

%return

Returned: a string.

the website name of self.

Method: website-data:get-size self types ⇒ %return
Method: get-size self types ⇒ %return

Gets the size of the data of types types in a <WebKitWebsiteData>.

Note that currently the data size is only known for the disk-cache, local-storage, indexeddb-databases and dom-cache data types, so for all other types 0 will be returned.

self

Passed: a <WebKitWebsiteData>.

a <WebKitWebsiteData>

types

Passed: a <WebKitWebsiteDataTypes>, or a list of its symbols, or one of them.

a bitmask of <WebKitWebsiteDataTypes>

%return

Returned: an unsigned 64-bit integer.

the size of self for the given types.

Method: website-data:get-types self ⇒ %return
Method: get-types self ⇒ %return

Gets the types of data stored in the client for a <WebKitWebsiteData>.

These are the types actually present, not the types queried with website-data-manager:fetch.

self

Passed: a <WebKitWebsiteData>.

a <WebKitWebsiteData>

%return

Returned: a <WebKitWebsiteDataTypes>.

a bitmask of <WebKitWebsiteDataTypes> in self

Method: website-data:ref self ⇒ %return
Method: ref self ⇒ %return

Atomically increments the reference count of self by one.

This function is MT-safe and may be called from any thread.

self

Passed: a <WebKitWebsiteData>.

a <WebKitWebsiteData>

%return

Returned: a <WebKitWebsiteData>.

The passed <WebKitWebsiteData>

Method: website-data:unref self
Method: unref self

Atomically decrements the reference count of self by one.

If the reference count drops to 0, all memory allocated by <WebKitWebsiteData> is released. This function is MT-safe and may be called from any thread.

self

Passed: a <WebKitWebsiteData>.

A <WebKitWebsiteData>