Package org.mozilla.geckoview
Interface WebExtension.BrowsingDataDelegate
- Enclosing class:
- WebExtension
@UiThread
public static interface WebExtension.BrowsingDataDelegate
This delegate is used to handle calls from the |browsingData| WebExtension API.
See also: WebExtensions/API/browsingData
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
This class represents the current default settings for the "Clear Data" functionality in the browser.static class
Types of data that a browser "Clear Data" UI might have access to. -
Method Summary
Modifier and TypeMethodDescriptiondefault GeckoResult<Void>
onClearDownloads
(long sinceUnixTimestamp) Clear downloads created after the given timestamp.default GeckoResult<Void>
onClearFormData
(long sinceUnixTimestamp) Clear form data created after the given timestamp.default GeckoResult<Void>
onClearHistory
(long sinceUnixTimestamp) Clear history saved after the given timestamp.default GeckoResult<Void>
onClearPasswords
(long sinceUnixTimestamp) Clear passwords saved after the given timestamp.Gets current settings for the browser's "Clear Data" UI.
-
Method Details
-
onGetSettings
Gets current settings for the browser's "Clear Data" UI.- Returns:
- a
GeckoResult
that resolves to an instance ofWebExtension.BrowsingDataDelegate.Settings
that represents the current state for the browser's "Clear Data" UI. - See Also:
-
onClearFormData
Clear form data created after the given timestamp.- Parameters:
sinceUnixTimestamp
- timestamp in seconds since the UNIX Epoch.- Returns:
- a
GeckoResult
that resolves when data has been cleared.
-
onClearPasswords
Clear passwords saved after the given timestamp.- Parameters:
sinceUnixTimestamp
- timestamp in seconds since the UNIX Epoch.- Returns:
- a
GeckoResult
that resolves when data has been cleared.
-
onClearHistory
Clear history saved after the given timestamp.- Parameters:
sinceUnixTimestamp
- timestamp in seconds since the UNIX Epoch.- Returns:
- a
GeckoResult
that resolves when data has been cleared.
-
onClearDownloads
Clear downloads created after the given timestamp.- Parameters:
sinceUnixTimestamp
- timestamp in seconds since the UNIX Epoch.- Returns:
- a
GeckoResult
that resolves when data has been cleared.
-