StorageApi class

Constructors

StorageApi(Client _client)

Properties

hashCode → int
The hash code for this object.
no setterinherited
onCacheStorageContentUpdated → Stream<CacheStorageContentUpdatedEvent>
A cache's contents have been modified.
no setter
onCacheStorageListUpdated → Stream<CacheStorageListUpdatedEvent>
A cache has been added/deleted.
no setter
onIndexedDBContentUpdated → Stream<IndexedDBContentUpdatedEvent>
The origin's IndexedDB object store has been modified.
no setter
onIndexedDBListUpdated → Stream<IndexedDBListUpdatedEvent>
The origin's IndexedDB database list has been modified.
no setter
onPrivateVerificationTokensUpdated → Stream<void>
Private Verification Tokens have been stored or deleted.
no setter
onStorageBucketCreatedOrUpdated → Stream<StorageBucketInfo>
no setter
onStorageBucketDeleted → Stream<String>
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearCookies({BrowserContextID? browserContextId}) → Future<void>
Clears cookies. browserContextId Browser context to use when called on the browser endpoint.
clearDataForOrigin(String origin, String storageTypes) → Future<void>
Clears storage for origin. origin Security origin. storageTypes Comma separated list of StorageType to clear.
clearDataForStorageKey(String storageKey, String storageTypes) → Future<void>
Clears storage for storage key. storageKey Storage key. storageTypes Comma separated list of StorageType to clear.
clearPrivateVerificationTokens(String issuerOrigin) → Future<void>
Removes all Private Verification Tokens issued by the provided issuerOrigin.
clearTrustTokens(String issuerOrigin) → Future<bool>
Removes all Trust Tokens issued by the provided issuerOrigin. Leaves other stored data, including the issuer's Redemption Records, intact. Returns: True if any tokens were deleted, false otherwise.
deletePrivateVerificationToken(String tokenId) → Future<void>
Removes a specific Private Verification Token by its ID.
deleteStorageBucket(StorageBucket bucket) → Future<void>
Deletes the Storage Bucket with the given storage key and bucket name.
getCookies({BrowserContextID? browserContextId}) → Future<List<Cookie>>
Returns all browser cookies. browserContextId Browser context to use when called on the browser endpoint. Returns: Array of cookie objects.
getPrivateVerificationTokens() → Future<List<PrivateVerificationToken>>
Returns all stored Private Verification Tokens for the current browsing context.
getPrivateVerificationTokensIssuerConfigs() → Future<List<PrivateVerificationTokensIssuerConfig>>
Returns the configured Private Verification Tokens issuers and their redeemer origins.
getStorageKey({FrameId? frameId}) → Future<SerializedStorageKey>
Returns storage key for the given frame. If no frame ID is provided, the storage key of the target executing this command is returned.
getStorageKeyForFrame(FrameId frameId) → Future<SerializedStorageKey>
Returns a storage key given a frame id. Deprecated. Please use Storage.getStorageKey instead.
getTrustTokens() → Future<List<TrustTokens>>
Returns the number of stored Trust Tokens per issuer for the current browsing context.
getUsageAndQuota(String origin) → Future<GetUsageAndQuotaResult>
Returns usage and quota in bytes. origin Security origin.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
overrideQuotaForOrigin(String origin, {num? quotaSize}) → Future<void>
Override quota for the specified origin origin Security origin. quotaSize The quota size (in bytes) to override the original quota with. If this is called multiple times, the overridden quota will be equal to the quotaSize provided in the final call. If this is called without specifying a quotaSize, the quota will be reset to the default value for the specified origin. If this is called multiple times with different origins, the override will be maintained for each origin until it is disabled (called without a quotaSize).
runBounceTrackingMitigations() → Future<List<String>>
Deletes state for sites identified as potential bounce trackers, immediately.
setCookies(List<CookieParam> cookies, {BrowserContextID? browserContextId}) → Future<void>
Sets given cookies. cookies Cookies to be set. browserContextId Browser context to use when called on the browser endpoint.
setPrivateVerificationTokensTracking(bool enable) → Future<void>
Set tracking for Private Verification Tokens.
setStorageBucketTracking(String storageKey, bool enable) → Future<void>
Set tracking for a storage key's buckets.
toString() → String
A string representation of this object.
inherited
trackCacheStorageForOrigin(String origin) → Future<void>
Registers origin to be notified when an update occurs to its cache storage list. origin Security origin.
trackCacheStorageForStorageKey(String storageKey) → Future<void>
Registers storage key to be notified when an update occurs to its cache storage list. storageKey Storage key.
trackIndexedDBForOrigin(String origin) → Future<void>
Registers origin to be notified when an update occurs to its IndexedDB. origin Security origin.
trackIndexedDBForStorageKey(String storageKey) → Future<void>
Registers storage key to be notified when an update occurs to its IndexedDB. storageKey Storage key.
untrackCacheStorageForOrigin(String origin) → Future<void>
Unregisters origin from receiving notifications for cache storage. origin Security origin.
untrackCacheStorageForStorageKey(String storageKey) → Future<void>
Unregisters storage key from receiving notifications for cache storage. storageKey Storage key.
untrackIndexedDBForOrigin(String origin) → Future<void>
Unregisters origin from receiving notifications for IndexedDB. origin Security origin.
untrackIndexedDBForStorageKey(String storageKey) → Future<void>
Unregisters storage key from receiving notifications for IndexedDB. storageKey Storage key.

Operators

operator ==(Object other) → bool
The equality operator.
inherited