stable (1.2) stable RC (1.3) latest (tip-of-tree) v8-inspector (node) Home
Domains
Accessibility Animation ApplicationCache Audits Browser CSS CacheStorage Console DOM DOMDebugger DOMSnapshot DOMStorage Database Debugger DeviceOrientation Emulation HeadlessExperimental HeapProfiler IO IndexedDB Input Inspector LayerTree Log Memory Network Overlay Page Performance Profiler Runtime Schema Security ServiceWorker Storage SystemInfo Target Tethering Tracing
Chrome DevTools Protocol Viewer - latest (tip-of-tree)

Storage Domain

Experimental

Methods

Storage.clearDataForOrigin

Clears storage for origin.

Parameters
origin
string Security origin.
storageTypes
string Comma separated origin names.

Storage.getUsageAndQuota

Returns usage and quota in bytes.

Parameters
origin
string Security origin.
Return object
usage
number Storage usage (bytes).
quota
number Storage quota (bytes).
usageBreakdown
array [ UsageForType ] Storage usage per type (bytes).

Storage.trackCacheStorageForOrigin

Registers origin to be notified when an update occurs to its cache storage list.

Parameters
origin
string Security origin.

Storage.trackIndexedDBForOrigin

Registers origin to be notified when an update occurs to its IndexedDB.

Parameters
origin
string Security origin.

Storage.untrackCacheStorageForOrigin

Unregisters origin from receiving notifications for cache storage.

Parameters
origin
string Security origin.

Storage.untrackIndexedDBForOrigin

Unregisters origin from receiving notifications for IndexedDB.

Parameters
origin
string Security origin.

Events

Storage.cacheStorageContentUpdated

A cache's contents have been modified.

Parameters
origin
string Origin to update.
cacheName
string Name of cache in origin.

Storage.cacheStorageListUpdated

A cache has been added/deleted.

Parameters
origin
string Origin to update.

Storage.indexedDBContentUpdated

The origin's IndexedDB object store has been modified.

Parameters
origin
string Origin to update.
databaseName
string Database to update.
objectStoreName
string ObjectStore to update.

Storage.indexedDBListUpdated

The origin's IndexedDB database list has been modified.

Parameters
origin
string Origin to update.

Types

StorageType

Enum of possible storage types.

Type: string

Allowed values

appcache, cookies, file_systems, indexeddb, local_storage, shader_cache, websql, service_workers, cache_storage, all, other.

UsageForType

Usage for a storage type.

Type: object

Properties
storageType
StorageType Name of storage type.
usage
number Storage usage (bytes).