blob: 9e0c78a9c72c42edebf9a595aa673b63ef70c9cc [file] [log] [blame]
// Copyright 2014 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.
// See https://w3c.github.io/ServiceWorker/#cachestorage-interface
[
SecureContext,
Exposed=(Window,Worker)
] interface CacheStorage {
[CallWith=ScriptState, RaisesException] Promise<any> match(RequestInfo request, optional CacheQueryOptions options);
[CallWith=ScriptState] Promise<boolean> has(DOMString cacheName);
[CallWith=ScriptState] Promise<Cache> open(DOMString cacheName);
[CallWith=ScriptState, ImplementedAs=Delete] Promise<boolean> delete(DOMString cacheName);
[CallWith=ScriptState] Promise<sequence<DOMString>> keys();
};