storage-buckets.idl (1318B)
1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into webref 3 // (https://github.com/w3c/webref) 4 // Source: Storage Buckets API (https://wicg.github.io/storage-buckets/) 5 6 [SecureContext] 7 interface mixin NavigatorStorageBuckets { 8 [SameObject] readonly attribute StorageBucketManager storageBuckets; 9 }; 10 Navigator includes NavigatorStorageBuckets; 11 WorkerNavigator includes NavigatorStorageBuckets; 12 13 [Exposed=(Window,Worker), 14 SecureContext] 15 interface StorageBucketManager { 16 Promise<StorageBucket> open(DOMString name, optional StorageBucketOptions options = {}); 17 Promise<sequence<DOMString>> keys(); 18 Promise<undefined> delete(DOMString name); 19 }; 20 21 dictionary StorageBucketOptions { 22 boolean persisted = false; 23 unsigned long long quota; 24 DOMHighResTimeStamp expires; 25 }; 26 27 [Exposed=(Window,Worker), 28 SecureContext] 29 interface StorageBucket { 30 readonly attribute DOMString name; 31 32 [Exposed=Window] Promise<boolean> persist(); 33 Promise<boolean> persisted(); 34 35 Promise<StorageEstimate> estimate(); 36 37 Promise<undefined> setExpires(DOMHighResTimeStamp expires); 38 Promise<DOMHighResTimeStamp?> expires(); 39 40 [SameObject] readonly attribute IDBFactory indexedDB; 41 42 [SameObject] readonly attribute CacheStorage caches; 43 44 Promise<FileSystemDirectoryHandle> getDirectory(); 45 };