pub trait WebsiteDataManagerExt: 'static {
Show 23 methods fn fetch<P: FnOnce(Result<Vec<WebsiteData>, Error>) + 'static>(
        &self,
        types: WebsiteDataTypes,
        cancellable: Option<&impl IsA<Cancellable>>,
        callback: P
    ); fn fetch_future(
        &self,
        types: WebsiteDataTypes
    ) -> Pin<Box_<dyn Future<Output = Result<Vec<WebsiteData>, Error>> + 'static>>; fn base_cache_directory(&self) -> Option<GString>; fn base_data_directory(&self) -> Option<GString>; fn cookie_manager(&self) -> Option<CookieManager>; fn disk_cache_directory(&self) -> Option<GString>; fn dom_cache_directory(&self) -> Option<GString>; fn hsts_cache_directory(&self) -> Option<GString>; fn indexeddb_directory(&self) -> Option<GString>; fn itp_directory(&self) -> Option<GString>; fn is_itp_enabled(&self) -> bool; fn itp_summary<P: FnOnce(Result<Vec<ITPThirdParty>, Error>) + 'static>(
        &self,
        cancellable: Option<&impl IsA<Cancellable>>,
        callback: P
    ); fn itp_summary_future(
        &self
    ) -> Pin<Box_<dyn Future<Output = Result<Vec<ITPThirdParty>, Error>> + 'static>>; fn local_storage_directory(&self) -> Option<GString>; fn offline_application_cache_directory(&self) -> Option<GString>; fn is_persistent_credential_storage_enabled(&self) -> bool; fn service_worker_registrations_directory(&self) -> Option<GString>; fn tls_errors_policy(&self) -> TLSErrorsPolicy; fn websql_directory(&self) -> Option<GString>; fn is_ephemeral(&self) -> bool; fn set_itp_enabled(&self, enabled: bool); fn set_persistent_credential_storage_enabled(&self, enabled: bool); fn set_tls_errors_policy(&self, policy: TLSErrorsPolicy);
}
Available on crate feature v2_10 only.
Expand description

Trait containing all WebsiteDataManager methods.

Implementors

WebsiteDataManager

Required Methods

Available on crate feature v2_16 only.

Asynchronously get the list of WebsiteData for the given types.

When the operation is finished, callback will be called. You can then call webkit_website_data_manager_fetch_finish() to get the result of the operation.

types

WebsiteDataTypes

cancellable

a gio::Cancellable or None to ignore

callback

a GAsyncReadyCallback to call when the request is satisfied

Available on crate feature v2_16 only.

Get the property::WebsiteDataManager::base-cache-directory property.

Returns

the base directory for Website cache, or None if property::WebsiteDataManager::base-cache-directory was not provided or self is ephemeral.

Get the property::WebsiteDataManager::base-data-directory property.

Returns

the base directory for Website data, or None if property::WebsiteDataManager::base-data-directory was not provided or self is ephemeral.

Available on crate feature v2_16 only.

Get the CookieManager of self.

Returns

a CookieManager

Get the property::WebsiteDataManager::disk-cache-directory property.

Returns

the directory where HTTP disk cache is stored or None if self is ephemeral.

Available on crate feature v2_30 only.

Get the property::WebsiteDataManager::dom-cache-directory property.

Returns

the directory where DOM cache is stored or None if self is ephemeral.

Available on crate feature v2_26 only.

Get the property::WebsiteDataManager::hsts-cache-directory property.

Returns

the directory where the HSTS cache is stored or None if self is ephemeral.

Get the property::WebsiteDataManager::indexeddb-directory property.

Returns

the directory where IndexedDB databases are stored or None if self is ephemeral.

Available on crate feature v2_30 only.

Get the property::WebsiteDataManager::itp-directory property.

Returns

the directory where Intelligent Tracking Prevention data is stored or None if self is ephemeral.

Available on crate feature v2_30 only.

Get whether Intelligent Tracking Prevention (ITP) is enabled or not.

Returns

true if ITP is enabled, or false otherwise.

Available on crate feature v2_30 only.

Asynchronously get the list of ITPThirdParty seen for self.

Every ITPThirdParty contains the list of ITPFirstParty under which it has been seen.

When the operation is finished, callback will be called. You can then call webkit_website_data_manager_get_itp_summary_finish() to get the result of the operation.

cancellable

a gio::Cancellable or None to ignore

callback

a GAsyncReadyCallback to call when the request is satisfied

Available on crate feature v2_30 only.

Get the property::WebsiteDataManager::local-storage-directory property.

Returns

the directory where local storage data is stored or None if self is ephemeral.

Get the property::WebsiteDataManager::offline-application-cache-directory property.

Returns

the directory where offline web application cache is stored or None if self is ephemeral.

Available on crate feature v2_30 only.

Get whether persistent credential storage is enabled or not.

See also set_persistent_credential_storage_enabled().

Returns

true if persistent credential storage is enabled, or false otherwise.

Available on crate feature v2_30 only.

Get the property::WebsiteDataManager::service-worker-registrations-directory property.

Returns

the directory where service worker registrations are stored or None if self is ephemeral.

Available on crate feature v2_32 only.

Get the TLS errors policy of self.

Returns

a TLSErrorsPolicy

👎Deprecated: Since 2.24

Get the property::WebsiteDataManager::websql-directory property.

Deprecated since 2.24

WebSQL is no longer supported. Use IndexedDB instead.

Returns

the directory where WebSQL databases are stored or None if self is ephemeral.

Available on crate feature v2_16 only.

Get whether a WebsiteDataManager is ephemeral.

See property::WebsiteDataManager::is-ephemeral for more details.

Returns

true if self is ephemeral or false otherwise.

Available on crate feature v2_30 only.

Enable or disable Intelligent Tracking Prevention (ITP).

When ITP is enabled resource load statistics are collected and used to decide whether to allow or block third-party cookies and prevent user tracking. Note that while ITP is enabled the accept policy CookieAcceptPolicy::NoThirdParty is ignored and CookieAcceptPolicy::Always is used instead. See also CookieManagerExt::set_accept_policy().

enabled

value to set

Available on crate feature v2_30 only.

Enable or disable persistent credential storage.

When enabled, which is the default for non-ephemeral sessions, the network process will try to read and write HTTP authentiacation credentials from persistent storage.

enabled

value to set

Available on crate feature v2_32 only.

Set the TLS errors policy of self as policy.

policy

a TLSErrorsPolicy

Implementors