Files
serenity/Userland/Libraries/LibWeb/StorageAPI/StorageManager.idl
Jamie Mansfield e27951fc9d LibWeb: Stub StorageManager idl interface
(cherry picked from commit 1b84062c747e90ee00c5cbc42224f2c22e9e2aba)
2024-11-01 18:23:28 -04:00

15 lines
423 B
Plaintext

// https://storage.spec.whatwg.org/#storagemanager
[SecureContext, Exposed=(Window,Worker)]
interface StorageManager {
[FIXME] Promise<boolean> persisted();
[FIXME, Exposed=Window] Promise<boolean> persist();
[FIXME] Promise<StorageEstimate> estimate();
};
// https://storage.spec.whatwg.org/#dictdef-storageestimate
dictionary StorageEstimate {
unsigned long long usage;
unsigned long long quota;
};