mirror of
https://github.com/servo/servo.git
synced 2025-10-17 16:59:27 +01:00
22 lines
504 B
Text
22 lines
504 B
Text
[SecureContext,
|
|
NoInterfaceObject,
|
|
Exposed=(Window,Worker)]
|
|
interface NavigatorStorage {
|
|
readonly attribute StorageManager storage;
|
|
};
|
|
Navigator implements NavigatorStorage;
|
|
WorkerNavigator implements NavigatorStorage;
|
|
|
|
[SecureContext,
|
|
Exposed=(Window,Worker)]
|
|
interface StorageManager {
|
|
Promise<boolean> persisted();
|
|
[Exposed=Window] Promise<boolean> persist();
|
|
|
|
Promise<StorageEstimate> estimate();
|
|
};
|
|
|
|
dictionary StorageEstimate {
|
|
unsigned long long usage;
|
|
unsigned long long quota;
|
|
};
|