chromium/third_party/blink/renderer/modules/quota/storage_manager.idl

// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://storage.spec.whatwg.org/#storagemanager

[
    SecureContext,
    Exposed=(Window,Worker)
] interface StorageManager : EventTarget {
    [CallWith=ScriptState, MeasureAs=DurableStoragePersisted, RaisesException] Promise<boolean> persisted();
    [Exposed=Window, CallWith=ScriptState, MeasureAs=DurableStoragePersist, RaisesException] Promise<boolean> persist();

    [CallWith=ScriptState, MeasureAs=DurableStorageEstimate, RaisesException] Promise<StorageEstimate> estimate();
    [RuntimeEnabled=QuotaChange] attribute EventHandler onquotachange;
};