Provides access to particual cache storages of the network URI cache.
Get storage where entries will only remain in memory, never written
to the disk.
NOTE: Any existing disk entry for [URL|id-extension] will be doomed
prior opening an entry using this memory-only storage. Result of
AsyncOpenURI will be a new and empty memory-only entry. Using
OPEN_READONLY open flag has no effect on this behavior.
aLoadContextInfo | Information about the loading context, this focuses the storage JAR and respects separate storage for private browsing. |
Get storage where entries will be written to disk when not forbidden by
response headers.
aLookupAppCache | When set true (for top level document loading channels) app cache will be first to check on to find entries in. |
Get storage for a specified application cache obtained using some different
mechanism.
aLoadContextInfo | Mandatory reference to a load context information. |
aApplicationCache | Optional reference to an existing appcache. When left null, this will work with offline cache as a whole. |
Evict the whole cache.
Purges data we keep warmed in memory. Use for tests and for
saving memory.
Asynchronously determine how many bytes of the disk space the cache takes.
@see nsICacheStorageConsumptionObserver
aObserver | A mandatory (weak referred) observer. Documented at nsICacheStorageConsumptionObserver. NOTE: the observer MUST implement nsISupportsWeakReference. |
I/O thread target to use for any operations on disk
Purge only data of disk backed entries. Metadata are left for
performance purposes.
Purge whole disk backed entries from memory. Disk files will
be left unattended.
Purge all entries we keep in memory, including memory-storage
entries. This may be dangerous to use.