Interface Storage

All Known Implementing Classes:
StorageImpl

public interface Storage
  • Method Summary

    Modifier and Type Method Description
    void clearCookies()
    Clears cookies.
    void clearCookies​(java.lang.String browserContextId)
    Clears cookies.
    void clearDataForOrigin​(java.lang.String origin, java.lang.String storageTypes)
    Clears storage for origin.
    java.util.List<Cookie> getCookies()
    Returns all browser cookies.
    java.util.List<Cookie> getCookies​(java.lang.String browserContextId)
    Returns all browser cookies.
    GetUsageAndQuotaResult getUsageAndQuota​(java.lang.String origin)
    Returns usage and quota in bytes.
    void setCookies​(java.util.List<CookieParam> cookies)
    Sets given cookies.
    void setCookies​(java.util.List<CookieParam> cookies, java.lang.String browserContextId)
    Sets given cookies.
    void trackCacheStorageForOrigin​(java.lang.String origin)
    Registers origin to be notified when an update occurs to its cache storage list.
    void trackIndexedDBForOrigin​(java.lang.String origin)
    Registers origin to be notified when an update occurs to its IndexedDB.
    void untrackCacheStorageForOrigin​(java.lang.String origin)
    Unregisters origin from receiving notifications for cache storage.
    void untrackIndexedDBForOrigin​(java.lang.String origin)
    Unregisters origin from receiving notifications for IndexedDB.
  • Method Details

    • clearDataForOrigin

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

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

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

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

      GetUsageAndQuotaResult getUsageAndQuota​(java.lang.String origin)
      Returns usage and quota in bytes.
      Parameters:
      origin - Security origin.
      Returns:
      GetUsageAndQuotaResult
    • trackCacheStorageForOrigin

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

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

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

      void untrackIndexedDBForOrigin​(java.lang.String origin)
      Unregisters origin from receiving notifications for IndexedDB.
      Parameters:
      origin - Security origin.
    • getCookies

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

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

      void clearCookies()
      Clears cookies.