Class

WebKitWebsiteDataManager

since: 2.10

Description [src]

class WebKit.WebsiteDataManager : GObject.Object {
  parent: GObject
}

Manages data stored locally by web sites.

You can use WebKitWebsiteDataManager to configure the local directories where website data will be stored. Use WebKitWebsiteDataManager:base-data-directory and WebKitWebsiteDataManager:base-cache-directory set a common base directory for all website data and caches. The newly created WebKitWebsiteDataManager must be passed as a construct property to a WebKitWebContext; you can use webkit_web_context_new_with_website_data_manager() to create a new WebKitWebContext with a WebKitWebsiteDataManager. If you don’t want to set any specific configuration, you don’t need to create a WebKitWebsiteDataManager: the WebKitWebContext will create a WebKitWebsiteDataManager with the default configuration. To get the WebKitWebsiteDataManager of a WebKitWebContext, you can use webkit_web_context_get_website_data_manager().

A WebKitWebsiteDataManager can also be ephemeral, in which case all the directory configuration is not needed because website data will never persist. You can create an ephemeral WebKitWebsiteDataManager with webkit_website_data_manager_new_ephemeral() and pass the ephemeral WebKitWebsiteDataManager to a WebKitWebContext, or simply use webkit_web_context_new_ephemeral().

WebKitWebsiteDataManager can also be used to fetch website data, remove data stored by particular websites, or clear data for all websites modified since a given period of time.

Available since: 2.10

Ancestors

Instance methods

webkit_website_data_manager_clear

Asynchronously clear the website data of the given types modified in the past timespan.

since: 2.16

webkit_website_data_manager_clear_finish

Finish an asynchronous operation started with webkit_website_data_manager_clear()

since: 2.16

webkit_website_data_manager_fetch

Asynchronously get the list of WebKitWebsiteData for the given types.

since: 2.16

webkit_website_data_manager_fetch_finish

Finish an asynchronous operation started with webkit_website_data_manager_fetch().

since: 2.16

webkit_website_data_manager_get_base_cache_directory

Get the WebKitWebsiteDataManager:base-cache-directory property.

since: 2.10

webkit_website_data_manager_get_base_data_directory

Get the WebKitWebsiteDataManager:base-data-directory property.

since: 2.10

webkit_website_data_manager_get_favicon_database

Get the WebKitFaviconDatabase of manager.

unstable since: 2.40

webkit_website_data_manager_get_favicons_enabled

Get whether website icons are enabled.

unstable since: 2.40

webkit_website_data_manager_get_itp_summary

Asynchronously get the list of WebKitITPThirdParty seen for manager.

since: 2.30

webkit_website_data_manager_get_itp_summary_finish

Finish an asynchronous operation started with webkit_website_data_manager_get_itp_summary().

since: 2.30

webkit_website_data_manager_is_ephemeral

Get whether a WebKitWebsiteDataManager is ephemeral.

since: 2.16

webkit_website_data_manager_remove

Asynchronously removes the website data in the given website_data list.

since: 2.16

webkit_website_data_manager_remove_finish

Finish an asynchronous operation started with webkit_website_data_manager_remove().

since: 2.16

webkit_website_data_manager_set_favicons_enabled

Set whether website icons are enabled. Website icons are enabled by default. When website icons are disabled, the WebKitFaviconDatabase of manager is closed its reference removed, so webkit_website_data_manager_get_favicon_database() will return NULL. If website icons are enabled again, a new WebKitFaviconDatabase will be created.

unstable since: 2.40

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

WebKit.WebsiteDataManager:base-cache-directory

The base directory for caches. If NULL, a default location will be used.

since: 2.10

WebKit.WebsiteDataManager:base-data-directory

The base directory for website data. If NULL, a default location will be used.

since: 2.10

WebKit.WebsiteDataManager:is-ephemeral

Whether the WebKitWebsiteDataManager is ephemeral. An ephemeral WebKitWebsiteDataManager handles all websites data as non-persistent, and nothing will be written to the client storage. Note that if you create an ephemeral WebKitWebsiteDataManager all other construction parameters to configure data directories will be ignored.

since: 2.16

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct WebKitWebsiteDataManagerClass {
  GObjectClass parent_class;
  void (* _webkit_reserved0) (
void
  );
  void (* _webkit_reserved1) (
void
  );
  void (* _webkit_reserved2) (
void
  );
  void (* _webkit_reserved3) (
void
  );
  
}
No description available.
Class members
parent_class: GObjectClass
No description available.
_webkit_reserved0: void (* _webkit_reserved0) ( void )
No description available.
_webkit_reserved1: void (* _webkit_reserved1) ( void )
No description available.
_webkit_reserved2: void (* _webkit_reserved2) ( void )
No description available.
_webkit_reserved3: void (* _webkit_reserved3) ( void )
No description available.