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

  • Method Details

    • onGetSettings

      @Nullable default GeckoResult<WebExtension.BrowsingDataDelegate.Settings> onGetSettings()
      Gets current settings for the browser's "Clear Data" UI.
      Returns:
      a GeckoResult that resolves to an instance of WebExtension.BrowsingDataDelegate.Settings that represents the current state for the browser's "Clear Data" UI.
      See Also:
    • onClearFormData

      @Nullable default GeckoResult<Void> onClearFormData(long sinceUnixTimestamp)
      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

      @Nullable default GeckoResult<Void> onClearPasswords(long sinceUnixTimestamp)
      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

      @Nullable default GeckoResult<Void> onClearHistory(long sinceUnixTimestamp)
      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

      @Nullable default GeckoResult<Void> onClearDownloads(long sinceUnixTimestamp)
      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.