blob: 5749c175e8774e8c6f337001f78f9b36266d61e1 [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://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#cache-storage
[
GarbageCollected,
Exposed=(Window,Worker),
] interface CacheStorage {
[CallWith=ScriptState, RaisesException] Promise<boolean> has(DOMString cacheName);
[CallWith=ScriptState, RaisesException] Promise<Cache> open(DOMString cacheName);
[CallWith=ScriptState, RaisesException, ImplementedAs=deleteFunction] Promise<boolean> delete(DOMString cacheName);
[CallWith=ScriptState, RaisesException] Promise<sequence<DOMString>> keys();
[CallWith=ScriptState, RaisesException] Promise<Response> match(RequestInfo request, optional CacheQueryOptions options);
};