Package io.webfolder.cdp.command
Interface Storage
public interface Storage
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears cookies.void
clearCookies
(String browserContextId) Clears cookies.void
clearDataForOrigin
(String origin, String storageTypes) Clears storage for origin.void
clearDataForStorageKey
(String storageKey, String storageTypes) Clears storage for storage key.clearTrustTokens
(String issuerOrigin) Removes all Trust Tokens issued by the provided issuerOrigin.Returns all browser cookies.getCookies
(String browserContextId) Returns all browser cookies.getInterestGroupDetails
(String ownerOrigin, String name) Gets details for a named interest group.getStorageKeyForFrame
(String frameId) Returns a storage key given a frame id.Returns the number of stored Trust Tokens per issuer for the current browsing context.getUsageAndQuota
(String origin) Returns usage and quota in bytes.void
overrideQuotaForOrigin
(String origin) Override quota for the specified originvoid
overrideQuotaForOrigin
(String origin, Double quotaSize) Override quota for the specified originvoid
setCookies
(List<CookieParam> cookies) Sets given cookies.void
setCookies
(List<CookieParam> cookies, String browserContextId) Sets given cookies.void
setInterestGroupTracking
(Boolean enable) Enables/Disables issuing of interestGroupAccessed events.void
trackCacheStorageForOrigin
(String origin) Registers origin to be notified when an update occurs to its cache storage list.void
trackIndexedDBForOrigin
(String origin) Registers origin to be notified when an update occurs to its IndexedDB.void
trackIndexedDBForStorageKey
(String storageKey) Registers storage key to be notified when an update occurs to its IndexedDB.void
untrackCacheStorageForOrigin
(String origin) Unregisters origin from receiving notifications for cache storage.void
untrackIndexedDBForOrigin
(String origin) Unregisters origin from receiving notifications for IndexedDB.void
untrackIndexedDBForStorageKey
(String storageKey) Unregisters storage key from receiving notifications for IndexedDB.
-
Method Details
-
clearCookies
void clearCookies()Clears cookies. -
clearCookies
Clears cookies.- Parameters:
browserContextId
- Browser context to use when called on the browser endpoint.
-
clearDataForOrigin
Clears storage for origin.- Parameters:
origin
- Security origin.storageTypes
- Comma separated list of StorageType to clear.
-
clearDataForStorageKey
Clears storage for storage key.- Parameters:
storageKey
- Storage key.storageTypes
- Comma separated list of StorageType to clear.
-
clearTrustTokens
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.
-
getCookies
Returns all browser cookies.- Returns:
- Array of cookie objects.
-
getCookies
Returns all browser cookies.- Parameters:
browserContextId
- Browser context to use when called on the browser endpoint.- Returns:
- Array of cookie objects.
-
getInterestGroupDetails
Gets details for a named interest group. -
getStorageKeyForFrame
Returns a storage key given a frame id. -
getTrustTokens
List<TrustTokens> getTrustTokens()Returns the number of stored Trust Tokens per issuer for the current browsing context. -
getUsageAndQuota
Returns usage and quota in bytes.- Parameters:
origin
- Security origin.- Returns:
- GetUsageAndQuotaResult
-
overrideQuotaForOrigin
Override quota for the specified origin- Parameters:
origin
- Security origin.
-
overrideQuotaForOrigin
Override quota for the specified origin- Parameters:
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).
-
setCookies
Sets given cookies.- Parameters:
cookies
- Cookies to be set.
-
setCookies
Sets given cookies.- Parameters:
cookies
- Cookies to be set.browserContextId
- Browser context to use when called on the browser endpoint.
-
setInterestGroupTracking
Enables/Disables issuing of interestGroupAccessed events. -
trackCacheStorageForOrigin
Registers origin to be notified when an update occurs to its cache storage list.- Parameters:
origin
- Security origin.
-
trackIndexedDBForOrigin
Registers origin to be notified when an update occurs to its IndexedDB.- Parameters:
origin
- Security origin.
-
trackIndexedDBForStorageKey
Registers storage key to be notified when an update occurs to its IndexedDB.- Parameters:
storageKey
- Storage key.
-
untrackCacheStorageForOrigin
Unregisters origin from receiving notifications for cache storage.- Parameters:
origin
- Security origin.
-
untrackIndexedDBForOrigin
Unregisters origin from receiving notifications for IndexedDB.- Parameters:
origin
- Security origin.
-
untrackIndexedDBForStorageKey
Unregisters storage key from receiving notifications for IndexedDB.- Parameters:
storageKey
- Storage key.
-