webkit.website_data_manager

Module for [WebsiteDataManager] class

Types 3

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.

A WebKitWebsiteDataManager can 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().

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.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
WebsiteDataManager self() nothrowReturns `this`, for use in `with` statements.
WebsiteDataManagerGidBuilder builder() static nothrowGet builder for [webkit.website_data_manager.WebsiteDataManager] Returns: New builder object
string baseCacheDirectory() @property nothrowGet `baseCacheDirectory` property. Returns: The base directory for caches. If null, a default location will be used.
string baseDataDirectory() @property nothrowGet `baseDataDirectory` property. Returns: The base directory for website data. If null, a default location will be used.
void clear(webkit.types.WebsiteDataTypes types, glib.types.TimeSpan timespan, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null) nothrowAsynchronously clear the website data of the given types modified in the past timespan.
bool clearFinish(gio.async_result.AsyncResult result)Finish an asynchronous operation started with [webkit.website_data_manager.WebsiteDataManager.clear]
void fetch(webkit.types.WebsiteDataTypes types, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null) nothrowAsynchronously get the list of #WebKitWebsiteData for the given types.
webkit.website_data.WebsiteData[] fetchFinish(gio.async_result.AsyncResult result)Finish an asynchronous operation started with [webkit.website_data_manager.WebsiteDataManager.fetch].
string getBaseCacheDirectory() nothrowGet the #WebKitWebsiteDataManager:base-cache-directory property. Returns: the base directory for caches, or null if #WebKitWebsiteDataManager:base-cache-directory was not provided or manager is eph...
string getBaseDataDirectory() nothrowGet the #WebKitWebsiteDataManager:base-data-directory property. Returns: the base directory for website data, or null if #WebKitWebsiteDataManager:base-data-directory was not provided or manager is...
webkit.favicon_database.FaviconDatabase getFaviconDatabase() nothrowGet the #WebKitFaviconDatabase of manager. Returns: a #WebKitFaviconDatabase, or null if website icons are disabled
bool getFaviconsEnabled() nothrowGet whether website icons are enabled. Returns: true if website icons are enabled, or false otherwise.
void getItpSummary(gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null) nothrowAsynchronously get the list of #WebKitITPThirdParty seen for manager.
webkit.itpthird_party.ITPThirdParty[] getItpSummaryFinish(gio.async_result.AsyncResult result)Finish an asynchronous operation started with [webkit.website_data_manager.WebsiteDataManager.getItpSummary].
bool isEphemeral() nothrowGet whether a #WebKitWebsiteDataManager is ephemeral.
void remove(webkit.types.WebsiteDataTypes types, webkit.website_data.WebsiteData[] websiteData, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null) nothrowAsynchronously removes the website data in the given website_data list.
bool removeFinish(gio.async_result.AsyncResult result)Finish an asynchronous operation started with [webkit.website_data_manager.WebsiteDataManager.remove].
void setFaviconsEnabled(bool enabled) nothrowSet whether website icons are enabled. Website icons are disabled by default. When website icons are disabled, the #WebKitFaviconDatabase of manager is closed and its reference removed, so [webkit....
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder implementation template for webkit.website_data_manager.WebsiteDataManager

Methods
T baseCacheDirectory(string propval) nothrowSet `baseCacheDirectory` property. Params: propval = The base directory for caches. If null, a default location will be used. Returns: Builder instance for fluent chaining
T baseDataDirectory(string propval) nothrowSet `baseDataDirectory` property. Params: propval = The base directory for website data. If null, a default location will be used. Returns: Builder instance for fluent chaining
T originStorageRatio(double propval) nothrowSet `originStorageRatio` property. Params: propval = The percentage of volume space that can be used for data storage for every domain. If the maximum storage is reached the storage request will fa...
T totalStorageRatio(double propval) nothrowSet `totalStorageRatio` property. Params: propval = The percentage of volume space that can be used for data storage for all domains. If the maximum storage is reached the eviction will happen. A v...