// GENERATED CONTENT - DO NOT EDIT // Content was automatically extracted by Reffy into webref // (https://github.com/w3c/webref) // Source: Shared Storage API (https://wicg.github.io/shared-storage/) [Exposed=(Window)] interface SharedStorageWorklet : Worklet { }; [Exposed=SharedStorageWorklet, Global=SharedStorageWorklet] interface SharedStorageWorkletGlobalScope : WorkletGlobalScope { undefined register(DOMString name, SharedStorageOperationConstructor operationCtor); readonly attribute WorkletSharedStorage sharedStorage; }; callback SharedStorageOperationConstructor = SharedStorageOperation(optional SharedStorageRunOperationMethodOptions options); [Exposed=SharedStorageWorklet] interface SharedStorageOperation { }; dictionary SharedStorageRunOperationMethodOptions { object data; boolean resolveToConfig = false; boolean keepAlive = false; }; [Exposed=SharedStorageWorklet] interface SharedStorageRunOperation : SharedStorageOperation { Promise run(object data); }; [Exposed=SharedStorageWorklet] interface SharedStorageSelectURLOperation : SharedStorageOperation { Promise run(object data, FrozenArray urls); }; [Exposed=(Window,SharedStorageWorklet)] interface SharedStorage { Promise set(DOMString key, DOMString value, optional SharedStorageSetMethodOptions options = {}); Promise append(DOMString key, DOMString value); Promise delete(DOMString key); Promise clear(); }; dictionary SharedStorageSetMethodOptions { boolean ignoreIfPresent = false; }; typedef (USVString or FencedFrameConfig) SharedStorageResponse; [Exposed=(Window)] interface WindowSharedStorage : SharedStorage { Promise run(DOMString name, optional SharedStorageRunOperationMethodOptions options = {}); Promise selectURL(DOMString name, FrozenArray urls, optional SharedStorageRunOperationMethodOptions options = {}); readonly attribute SharedStorageWorklet worklet; }; dictionary SharedStorageUrlWithMetadata { required USVString url; object reportingMetadata; }; partial interface Window { [SecureContext] readonly attribute WindowSharedStorage? sharedStorage; }; [Exposed=(SharedStorageWorklet)] interface WorkletSharedStorage : SharedStorage { Promise get(DOMString key); Promise length(); Promise remainingBudget(); async iterable; }; interface mixin HTMLSharedStorageWritableElementUtils { [CEReactions, SecureContext] attribute boolean sharedStorageWritable; }; HTMLIFrameElement includes HTMLSharedStorageWritableElementUtils; HTMLImageElement includes HTMLSharedStorageWritableElementUtils; partial dictionary RequestInit { boolean sharedStorageWritable; };