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.
WebsiteDataManager self()Returns `this`, for use in `with` statements.WebsiteDataManagerGidBuilder builder()Get builder for [webkit.websitedatamanager.WebsiteDataManager] Returns: New builder objectstring baseCacheDirectory() @propertyGet `baseCacheDirectory` property. Returns: The base directory for caches. If null, a default location will be used.string baseDataDirectory() @propertyGet `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)Asynchronously 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.websitedatamanager.WebsiteDataManager.clear]void fetch(webkit.types.WebsiteDataTypes types, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Asynchronously 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.websitedatamanager.WebsiteDataManager.fetch].string getBaseCacheDirectory()Get 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()Get 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()Get the #WebKitFaviconDatabase of manager. Returns: a #WebKitFaviconDatabase, or null if website icons are disabledbool getFaviconsEnabled()Get 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)Asynchronously 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.websitedatamanager.WebsiteDataManager.getItpSummary].bool isEphemeral()Get 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)Asynchronously removes the website data in the given website_data list.bool removeFinish(gio.async_result.AsyncResult result)Finish an asynchronous operation started with [webkit.websitedatamanager.WebsiteDataManager.remove].void setFaviconsEnabled(bool enabled)Set 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....T baseCacheDirectory(string propval)Set `baseCacheDirectory` property. Params: propval = The base directory for caches. If null, a default location will be used. Returns: Builder instance for fluent chainingT baseDataDirectory(string propval)Set `baseDataDirectory` property. Params: propval = The base directory for website data. If null, a default location will be used. Returns: Builder instance for fluent chainingT originStorageRatio(double propval)Set `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)Set `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...Fluent builder for [webkit.website_data_manager.WebsiteDataManager]