Interface Storage


public interface Storage
  • Method Details

    • clearCookies

      void clearCookies()
      Clears cookies.
    • clearCookies

      void clearCookies(String browserContextId)
      Clears cookies.
      Parameters:
      browserContextId - Browser context to use when called on the browser endpoint.
    • clearDataForOrigin

      void clearDataForOrigin(String origin, String storageTypes)
      Clears storage for origin.
      Parameters:
      origin - Security origin.
      storageTypes - Comma separated list of StorageType to clear.
    • clearDataForStorageKey

      void clearDataForStorageKey(String storageKey, String storageTypes)
      Clears storage for storage key.
      Parameters:
      storageKey - Storage key.
      storageTypes - Comma separated list of StorageType to clear.
    • clearTrustTokens

      Boolean clearTrustTokens(String issuerOrigin)
      Removes all Trust Tokens issued by the provided issuerOrigin. Leaves other stored data, including the issuer's Redemption Records, intact.
      Returns:
      True if any tokens were deleted, false otherwise.
    • getCookies

      List<Cookie> getCookies()
      Returns all browser cookies.
      Returns:
      Array of cookie objects.
    • getCookies

      List<Cookie> getCookies(String browserContextId)
      Returns all browser cookies.
      Parameters:
      browserContextId - Browser context to use when called on the browser endpoint.
      Returns:
      Array of cookie objects.
    • getInterestGroupDetails

      InterestGroupDetails getInterestGroupDetails(String ownerOrigin, String name)
      Gets details for a named interest group.
    • getStorageKeyForFrame

      String getStorageKeyForFrame(String frameId)
      Returns a storage key given a frame id.
    • getTrustTokens

      List<TrustTokens> getTrustTokens()
      Returns the number of stored Trust Tokens per issuer for the current browsing context.
    • getUsageAndQuota

      GetUsageAndQuotaResult getUsageAndQuota(String origin)
      Returns usage and quota in bytes.
      Parameters:
      origin - Security origin.
      Returns:
      GetUsageAndQuotaResult
    • overrideQuotaForOrigin

      void overrideQuotaForOrigin(String origin)
      Override quota for the specified origin
      Parameters:
      origin - Security origin.
    • overrideQuotaForOrigin

      void overrideQuotaForOrigin(String origin, Double quotaSize)
      Override quota for the specified origin
      Parameters:
      origin - Security origin.
      quotaSize - The quota size (in bytes) to override the original quota with. If this is called multiple times, the overridden quota will be equal to the quotaSize provided in the final call. If this is called without specifying a quotaSize, the quota will be reset to the default value for the specified origin. If this is called multiple times with different origins, the override will be maintained for each origin until it is disabled (called without a quotaSize).
    • setCookies

      void setCookies(List<CookieParam> cookies)
      Sets given cookies.
      Parameters:
      cookies - Cookies to be set.
    • setCookies

      void setCookies(List<CookieParam> cookies, String browserContextId)
      Sets given cookies.
      Parameters:
      cookies - Cookies to be set.
      browserContextId - Browser context to use when called on the browser endpoint.
    • setInterestGroupTracking

      void setInterestGroupTracking(Boolean enable)
      Enables/Disables issuing of interestGroupAccessed events.
    • trackCacheStorageForOrigin

      void trackCacheStorageForOrigin(String origin)
      Registers origin to be notified when an update occurs to its cache storage list.
      Parameters:
      origin - Security origin.
    • trackIndexedDBForOrigin

      void trackIndexedDBForOrigin(String origin)
      Registers origin to be notified when an update occurs to its IndexedDB.
      Parameters:
      origin - Security origin.
    • trackIndexedDBForStorageKey

      void trackIndexedDBForStorageKey(String storageKey)
      Registers storage key to be notified when an update occurs to its IndexedDB.
      Parameters:
      storageKey - Storage key.
    • untrackCacheStorageForOrigin

      void untrackCacheStorageForOrigin(String origin)
      Unregisters origin from receiving notifications for cache storage.
      Parameters:
      origin - Security origin.
    • untrackIndexedDBForOrigin

      void untrackIndexedDBForOrigin(String origin)
      Unregisters origin from receiving notifications for IndexedDB.
      Parameters:
      origin - Security origin.
    • untrackIndexedDBForStorageKey

      void untrackIndexedDBForStorageKey(String storageKey)
      Unregisters storage key from receiving notifications for IndexedDB.
      Parameters:
      storageKey - Storage key.