WebsiteData

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 webkit_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 webkit_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 webkit_website_data_get_size().

A list of WebKitWebsiteData can be retrieved with webkit_website_data_manager_fetch(). See #WebKitWebsiteDataManager for more information.

Constructors

this
this(WebKitWebsiteData* webKitWebsiteData, bool ownedRef)

Sets our main struct and passes it to the parent class.

Destructor

~this
~this()
Undocumented in source.

Members

Aliases

doref
alias doref = ref_
Undocumented in source.

Functions

getName
string getName()

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".

getSize
ulong getSize(WebKitWebsiteDataTypes types)

Gets the size of the data of types @types in a #WebKitWebsiteData. Note that currently the data size is only known for %WEBKIT_WEBSITE_DATA_DISK_CACHE data type so for all other types 0 will be returned.

getStruct
void* getStruct()

the main Gtk struct as a void*

getTypes
WebKitWebsiteDataTypes getTypes()

Gets the types of data stored in the client for a #WebKitWebsiteData. These are the types actually present, not the types queried with webkit_website_data_manager_fetch().

getWebsiteDataStruct
WebKitWebsiteData* getWebsiteDataStruct(bool transferOwnership)

Get the main Gtk struct

ref_
WebsiteData ref_()

Atomically increments the reference count of @website_data by one. This function is MT-safe and may be called from any thread.

unref
void unref()

Atomically decrements the reference count of @website_data 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.

Static functions

getType
GType getType()

Variables

ownedRef
bool ownedRef;
Undocumented in source.
webKitWebsiteData
WebKitWebsiteData* webKitWebsiteData;

the main Gtk struct

Meta

Since

2.16