| // Copyright 2020 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| // https://github.com/WICG/storage-buckets |
| |
| [ |
| Exposed=(Window,Worker), |
| RuntimeEnabled=StorageBuckets, |
| SecureContext |
| ] interface StorageBucketManager { |
| [ |
| CallWith=ScriptState, |
| RaisesException |
| ] Promise<StorageBucket> open(DOMString name, optional StorageBucketOptions options = {}); |
| [CallWith=ScriptState, RaisesException] Promise<sequence<DOMString>> keys(); |
| [CallWith=ScriptState, RaisesException, ImplementedAs=Delete] Promise<void> delete(DOMString name); |
| }; |