chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.storage / StorageDomain

StorageDomain

class StorageDomain

Functions

cacheStorageContentUpdated

A cache's contents have been modified.

fun cacheStorageContentUpdated(): Flow<CacheStorageContentUpdatedEvent>

cacheStorageListUpdated

A cache has been added/deleted.

fun cacheStorageListUpdated(): Flow<CacheStorageListUpdatedEvent>

clearCookies

Clears cookies.

suspend fun clearCookies(input: ClearCookiesRequest): Unit

clearDataForOrigin

Clears storage for origin.

suspend fun clearDataForOrigin(input: ClearDataForOriginRequest): Unit

events

Subscribes to all events related to this domain.

fun events(): Flow<StorageEvent>

getCookies

Returns all browser cookies.

suspend fun getCookies(input: GetCookiesRequest): GetCookiesResponse

getUsageAndQuota

Returns usage and quota in bytes.

suspend fun getUsageAndQuota(input: GetUsageAndQuotaRequest): GetUsageAndQuotaResponse

indexedDBContentUpdated

The origin's IndexedDB object store has been modified.

fun indexedDBContentUpdated(): Flow<IndexedDBContentUpdatedEvent>

indexedDBListUpdated

The origin's IndexedDB database list has been modified.

fun indexedDBListUpdated(): Flow<IndexedDBListUpdatedEvent>

overrideQuotaForOrigin

Override quota for the specified origin

suspend fun overrideQuotaForOrigin(input: OverrideQuotaForOriginRequest): Unit

setCookies

Sets given cookies.

suspend fun setCookies(input: SetCookiesRequest): Unit

trackCacheStorageForOrigin

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

suspend fun trackCacheStorageForOrigin(input: TrackCacheStorageForOriginRequest): Unit

trackIndexedDBForOrigin

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

suspend fun trackIndexedDBForOrigin(input: TrackIndexedDBForOriginRequest): Unit

untrackCacheStorageForOrigin

Unregisters origin from receiving notifications for cache storage.

suspend fun untrackCacheStorageForOrigin(input: UntrackCacheStorageForOriginRequest): Unit

untrackIndexedDBForOrigin

Unregisters origin from receiving notifications for IndexedDB.

suspend fun untrackIndexedDBForOrigin(input: UntrackIndexedDBForOriginRequest): Unit