Newer
Older
minerva / Userland / Libraries / LibWeb / StorageAPI / StorageManager.idl
@minerva minerva on 13 Jul 423 bytes Initial commit
// 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;
};