Interface Storage


  • public interface Storage
    • Method Detail

      • clearDataForOrigin

        void clearDataForOrigin​(String origin,
                                String storageTypes)
        Clears storage for origin.
        Parameters:
        origin - Security origin.
        storageTypes - Comma separated origin names.
      • getUsageAndQuota

        GetUsageAndQuotaResult getUsageAndQuota​(String origin)
        Returns usage and quota in bytes.
        Parameters:
        origin - Security origin.
        Returns:
        GetUsageAndQuotaResult
      • 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.
      • 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.