CDPotion.Domain.Storage (cdpotion v0.1.0)
Summary
Functions
Clears cookies.
Clears storage for origin.
Clears storage for storage key.
Clears all entries for a given origin's shared storage.
Removes all Trust Tokens issued by the provided issuerOrigin. Leaves other stored data, including the issuer's Redemption Records, intact.
Deletes entry for key
(if it exists) for a given origin's shared storage.
Deletes the Storage Bucket with the given storage key and bucket name.
Returns all browser cookies.
Gets details for a named interest group.
Gets the entries in an given origin's shared storage.
Gets metadata for an origin's shared storage.
Returns a storage key given a frame id.
Returns the number of stored Trust Tokens per issuer for the current browsing context.
Returns usage and quota in bytes.
Override quota for the specified origin
Resets the budget for ownerOrigin
by clearing all budget withdrawals.
Deletes state for sites identified as potential bounce trackers, immediately.
Enables/disables issuing of Attribution Reporting events.
Sets given cookies.
Enables/Disables issuing of interestGroupAccessed events.
Sets entry with key
and value
for a given origin's shared storage.
Enables/disables issuing of sharedStorageAccessed events.
Set tracking for a storage key's buckets.
Registers origin to be notified when an update occurs to its cache storage list.
Registers storage key to be notified when an update occurs to its cache storage list.
Registers origin to be notified when an update occurs to its IndexedDB.
Registers storage key to be notified when an update occurs to its IndexedDB.
Unregisters origin from receiving notifications for cache storage.
Unregisters storage key from receiving notifications for cache storage.
Unregisters origin from receiving notifications for IndexedDB.
Unregisters storage key from receiving notifications for IndexedDB.
Functions
clear_cookies(browser_context_id \\ nil)
Clears cookies.
Parameters:
browserContextId:Browser.BrowserContextID
: (Optional) Browser context to use when called on the browser endpoint.
clear_data_for_origin(origin, storage_types)
Clears storage for origin.
Parameters:
origin:string
: Security origin.storageTypes:string
: Comma separated list of StorageType to clear.
clear_data_for_storage_key(storage_key, storage_types)
Clears storage for storage key.
Parameters:
storageKey:string
: Storage key.storageTypes:string
: Comma separated list of StorageType to clear.
clear_trust_tokens(issuer_origin)
Removes all Trust Tokens issued by the provided issuerOrigin. Leaves other stored data, including the issuer's Redemption Records, intact.
Parameters:
issuerOrigin:string
: description not provided :(
delete_storage_bucket(bucket)
Deletes the Storage Bucket with the given storage key and bucket name.
Parameters:
bucket:StorageBucket
: description not provided :(
get_cookies(browser_context_id \\ nil)
Returns all browser cookies.
Parameters:
browserContextId:Browser.BrowserContextID
: (Optional) Browser context to use when called on the browser endpoint.
get_interest_group_details(owner_origin, name)
Gets details for a named interest group.
Parameters:
ownerOrigin:string
: description not provided :(name:string
: description not provided :(
get_storage_key_for_frame(frame_id)
Returns a storage key given a frame id.
Parameters:
frameId:Page.FrameId
: description not provided :(
get_trust_tokens()
Returns the number of stored Trust Tokens per issuer for the current browsing context.
get_usage_and_quota(origin)
Returns usage and quota in bytes.
Parameters:
origin:string
: Security origin.
override_quota_for_origin(origin, quota_size \\ nil)
Override quota for the specified origin
Parameters:
origin:string
: Security origin.quotaSize:number
: (Optional) 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).
run_bounce_tracking_mitigations()
Deletes state for sites identified as potential bounce trackers, immediately.
set_attribution_reporting_local_testing_mode(enabled)
https://wicg.github.io/attribution-reporting-api/
Parameters:
enabled:boolean
: If enabled, noise is suppressed and reports are sent immediately.
set_attribution_reporting_tracking(enable)
Enables/disables issuing of Attribution Reporting events.
Parameters:
enable:boolean
: description not provided :(
set_cookies(cookies, browser_context_id \\ nil)
Sets given cookies.
Parameters:
cookies:array
: Cookies to be set.browserContextId:Browser.BrowserContextID
: (Optional) Browser context to use when called on the browser endpoint.
set_interest_group_tracking(enable)
Enables/Disables issuing of interestGroupAccessed events.
Parameters:
enable:boolean
: description not provided :(
set_storage_bucket_tracking(storage_key, enable)
Set tracking for a storage key's buckets.
Parameters:
storageKey:string
: description not provided :(enable:boolean
: description not provided :(
track_cache_storage_for_origin(origin)
Registers origin to be notified when an update occurs to its cache storage list.
Parameters:
origin:string
: Security origin.
track_cache_storage_for_storage_key(storage_key)
Registers storage key to be notified when an update occurs to its cache storage list.
Parameters:
storageKey:string
: Storage key.
track_indexed_db_for_origin(origin)
Registers origin to be notified when an update occurs to its IndexedDB.
Parameters:
origin:string
: Security origin.
track_indexed_db_for_storage_key(storage_key)
Registers storage key to be notified when an update occurs to its IndexedDB.
Parameters:
storageKey:string
: Storage key.
untrack_cache_storage_for_origin(origin)
Unregisters origin from receiving notifications for cache storage.
Parameters:
origin:string
: Security origin.
untrack_cache_storage_for_storage_key(storage_key)
Unregisters storage key from receiving notifications for cache storage.
Parameters:
storageKey:string
: Storage key.
untrack_indexed_db_for_origin(origin)
Unregisters origin from receiving notifications for IndexedDB.
Parameters:
origin:string
: Security origin.
untrack_indexed_db_for_storage_key(storage_key)
Unregisters storage key from receiving notifications for IndexedDB.
Parameters:
storageKey:string
: Storage key.