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
);
}
v2_16
only.Required Methods
sourcefn clear<P: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
types: WebsiteDataTypes,
timespan: TimeSpan,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P
)
fn clear<P: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
types: WebsiteDataTypes,
timespan: TimeSpan,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P
)
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
timespan
a GTimeSpan
cancellable
a gio::Cancellable
or None
to ignore
callback
a GAsyncReadyCallback
to call when the request is satisfied
sourcefn remove<P: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
types: WebsiteDataTypes,
website_data: &[&WebsiteData],
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
)
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
website_data
a GList
of WebsiteData
cancellable
a gio::Cancellable
or None
to ignore
callback
a GAsyncReadyCallback
to call when the request is satisfied