blob: 73d72ceab9805195704bbc63fca6ba658018784f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
[
Exposed=(Window,Worker),
SecureContext
] interface StorageBucketManager {
Promise<StorageBucket> open(DOMString name,
optional StorageBucketOptions options = {});
Promise<sequence<DOMString>> keys();
Promise<undefined> delete(DOMString name);
};
dictionary StorageBucketOptions {
boolean persisted = false;
StorageBucketDurability durability = "relaxed";
unsigned long long? quota = null;
DOMTimeStamp? expires = null;
};
enum StorageBucketDurability {
"strict",
"relaxed"
};
[
Exposed=(Window,Worker),
SecureContext
] interface StorageBucket {
[Exposed=Window] Promise<boolean> persist();
Promise<boolean> persisted();
Promise<StorageEstimate> estimate();
Promise<StorageBucketDurability> durability();
Promise<undefined> setExpires(DOMTimeStamp expires);
Promise<DOMTimeStamp> expires();
};
|