CDPotion.Domain.Storage (cdpotion v0.1.0)

Summary

Functions

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.

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

Link to this function

clear_cookies(browser_context_id \\ nil)

Clears cookies.

Parameters:

  • browserContextId:Browser.BrowserContextID: (Optional) Browser context to use when called on the browser endpoint.
Link to this function

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.
Link to this function

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.
Link to this function

clear_shared_storage_entries(owner_origin)

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

Parameters:

  • ownerOrigin:string: description not provided :(
Link to this function

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 :(
Link to this function

delete_shared_storage_entry(owner_origin, key)

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

Parameters:

  • ownerOrigin:string: description not provided :(
  • key:string: description not provided :(
Link to this function

delete_storage_bucket(bucket)

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

Parameters:

  • bucket:StorageBucket: description not provided :(
Link to this function

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.
Link to this function

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 :(
Link to this function

get_shared_storage_entries(owner_origin)

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

Parameters:

  • ownerOrigin:string: description not provided :(
Link to this function

get_shared_storage_metadata(owner_origin)

Gets metadata for an origin's shared storage.

Parameters:

  • ownerOrigin:string: description not provided :(
Link to this function

get_storage_key_for_frame(frame_id)

Returns a storage key given a frame id.

Parameters:

  • frameId:Page.FrameId: description not provided :(
Link to this function

get_trust_tokens()

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

Link to this function

get_usage_and_quota(origin)

Returns usage and quota in bytes.

Parameters:

  • origin:string: Security origin.
Link to this function

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).
Link to this function

reset_shared_storage_budget(owner_origin)

Resets the budget for ownerOrigin by clearing all budget withdrawals.

Parameters:

  • ownerOrigin:string: description not provided :(
Link to this function

run_bounce_tracking_mitigations()

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

Link to this function

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.
Link to this function

set_attribution_reporting_tracking(enable)

Enables/disables issuing of Attribution Reporting events.

Parameters:

  • enable:boolean: description not provided :(
Link to this function

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.
Link to this function

set_interest_group_tracking(enable)

Enables/Disables issuing of interestGroupAccessed events.

Parameters:

  • enable:boolean: description not provided :(
Link to this function

set_shared_storage_entry(owner_origin, key, value, ignore_if_present \\ nil)

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

Parameters:

  • ownerOrigin:string: description not provided :(
  • key:string: description not provided :(
  • value:string: description not provided :(
  • ignoreIfPresent:boolean: (Optional) If ignoreIfPresent is included and true, then only sets the entry if key doesn't already exist.
Link to this function

set_shared_storage_tracking(enable)

Enables/disables issuing of sharedStorageAccessed events.

Parameters:

  • enable:boolean: description not provided :(
Link to this function

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 :(
Link to this function

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.
Link to this function

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.
Link to this function

track_indexed_db_for_origin(origin)

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

Parameters:

  • origin:string: Security origin.
Link to this function

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.
Link to this function

untrack_cache_storage_for_origin(origin)

Unregisters origin from receiving notifications for cache storage.

Parameters:

  • origin:string: Security origin.
Link to this function

untrack_cache_storage_for_storage_key(storage_key)

Unregisters storage key from receiving notifications for cache storage.

Parameters:

  • storageKey:string: Storage key.
Link to this function

untrack_indexed_db_for_origin(origin)

Unregisters origin from receiving notifications for IndexedDB.

Parameters:

  • origin:string: Security origin.
Link to this function

untrack_indexed_db_for_storage_key(storage_key)

Unregisters storage key from receiving notifications for IndexedDB.

Parameters:

  • storageKey:string: Storage key.