StorageDomain

(undocumented in the protocol definition)

Official doc

Functions

Link copied to clipboard

A cache's contents have been modified.

Link copied to clipboard

A cache has been added/deleted.

Link copied to clipboard
inline suspend fun clearCookies(optionalArgs: ClearCookiesRequest.Builder.() -> Unit = {}): ClearCookiesResponse

Clears cookies.

Link copied to clipboard
suspend fun clearDataForOrigin(origin: String, storageTypes: String): ClearDataForOriginResponse

Clears storage for origin.

Link copied to clipboard
suspend fun clearDataForStorageKey(storageKey: String, storageTypes: String): ClearDataForStorageKeyResponse

Clears storage for storage key.

Link copied to clipboard

Clears all entries for a given origin's shared storage.

Link copied to clipboard

Removes all Trust Tokens issued by the provided issuerOrigin. Leaves other stored data, including the issuer's Redemption Records, intact.

Link copied to clipboard

Deletes entry for key (if it exists) for a given origin's shared storage.

Link copied to clipboard

Deletes the Storage Bucket with the given storage key and bucket name.

Link copied to clipboard
fun events(): Flow<StorageEvent>

Subscribes to all events related to this domain.

Link copied to clipboard
inline suspend fun getCookies(optionalArgs: GetCookiesRequest.Builder.() -> Unit = {}): GetCookiesResponse

Returns all browser cookies.

Link copied to clipboard

Gets details for a named interest group.

Link copied to clipboard

Returns the effective Related Website Sets in use by this profile for the browser session. The effective Related Website Sets will not change during a browser session.

Link copied to clipboard

Gets the entries in an given origin's shared storage.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Returns the number of stored Trust Tokens per issuer for the current browsing context.

Link copied to clipboard

Returns usage and quota in bytes.

Link copied to clipboard

The origin's IndexedDB object store has been modified.

Link copied to clipboard

The origin's IndexedDB database list has been modified.

Link copied to clipboard

One of the interest groups was accessed. Note that these events are global to all targets sharing an interest group store.

Link copied to clipboard

An auction involving interest groups is taking place. These events are target-specific.

Specifies which auctions a particular network fetch may be related to, and in what role. Note that it is not ordered with respect to Network.requestWillBeSent (but will happen before loadingFinished loadingFailed).

Link copied to clipboard
Link copied to clipboard

Resets the budget for ownerOrigin by clearing all budget withdrawals.

Link copied to clipboard

Deletes state for sites identified as potential bounce trackers, immediately.

Link copied to clipboard

Sends all pending Attribution Reports immediately, regardless of their scheduled report time.

Link copied to clipboard
inline suspend fun setCookies(cookies: List<CookieParam>, optionalArgs: SetCookiesRequest.Builder.() -> Unit = {}): SetCookiesResponse

Sets given cookies.

Link copied to clipboard

Enables/Disables issuing of interestGroupAuctionEventOccurred and interestGroupAuctionNetworkRequestCreated.

Link copied to clipboard

Enables/Disables issuing of interestGroupAccessed events.

Link copied to clipboard
inline suspend fun setSharedStorageEntry(ownerOrigin: String, key: String, value: String, optionalArgs: SetSharedStorageEntryRequest.Builder.() -> Unit = {}): SetSharedStorageEntryResponse

Sets entry with key and value for a given origin's shared storage.

Link copied to clipboard

Enables/disables issuing of sharedStorageAccessed events.

Link copied to clipboard
Link copied to clipboard

Shared storage was accessed by the associated page. The following parameters are included in all events.

Link copied to clipboard

(undocumented in the protocol definition)

Link copied to clipboard

(undocumented in the protocol definition)

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Registers storage key to be notified when an update occurs to its IndexedDB.

Link copied to clipboard

Unregisters origin from receiving notifications for cache storage.

Link copied to clipboard
Link copied to clipboard

Unregisters origin from receiving notifications for IndexedDB.

Link copied to clipboard

Unregisters storage key from receiving notifications for IndexedDB.