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
Nested ClassesModifier and TypeInterfaceDescriptionstatic classThis class represents the current default settings for the "Clear Data" functionality in the browser.static classTypes 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
GeckoResultthat resolves to an instance ofWebExtension.BrowsingDataDelegate.Settingsthat 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
GeckoResultthat 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
GeckoResultthat 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
GeckoResultthat 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
GeckoResultthat resolves when data has been cleared.
-