pub trait WebsiteDataManagerExtManual: 'static {
    fn clear<P: FnOnce(Result<(), Error>) + Send + 'static>(
        &self,
        types: WebsiteDataTypes,
        timespan: TimeSpan,
        cancellable: Option<&impl IsA<Cancellable>>,
        callback: P
    ); fn remove<P: FnOnce(Result<(), Error>) + Send + 'static>(
        &self,
        types: WebsiteDataTypes,
        website_data: &[&WebsiteData],
        cancellable: Option<&impl IsA<Cancellable>>,
        callback: P
    ); }
Available on crate feature v2_16 only.

Required Methods

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

If timespan is 0, all website data will be removed.

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

Due to implementation limitations, this function does not currently delete any stored cookies if timespan is nonzero. This behavior may change in the future.

types

WebsiteDataTypes

timespan

a GTimeSpan

cancellable

a gio::Cancellable or None to ignore

callback

a GAsyncReadyCallback to call when the request is satisfied

Asynchronously removes the website data in the given website_data list.

Asynchronously removes the website data of the given types for websites in the given website_data list. Use clear() if you want to remove the website data for all sites.

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

types

WebsiteDataTypes

website_data

a GList of WebsiteData

cancellable

a gio::Cancellable or None to ignore

callback

a GAsyncReadyCallback to call when the request is satisfied

Implementors