mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibWeb: Stub StorageManager idl interface
This commit is contained in:
parent
97d5cf4eef
commit
1b84062c74
Notes:
github-actions[bot]
2024-08-16 15:23:18 +00:00
Author: https://github.com/jamierocks
Commit: 1b84062c74
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1066
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/trflynn89 ✅
10 changed files with 87 additions and 0 deletions
14
Userland/Libraries/LibWeb/StorageAPI/StorageManager.idl
Normal file
14
Userland/Libraries/LibWeb/StorageAPI/StorageManager.idl
Normal file
|
@ -0,0 +1,14 @@
|
|||
// 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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue