blob: b46f7b8576395f3f0734dbe65e77330a13b47c0d [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=ServiceWorker,
RuntimeEnabled=ServiceWorkerCache,
TypeChecking=Interface,
] interface CacheStorage {
[CallWith=ScriptState] Promise has(USVString cacheName);
[CallWith=ScriptState] Promise open(USVString cacheName);
[CallWith=ScriptState, ImplementedAs=deleteFunction] Promise delete(USVString cacheName);
[CallWith=ScriptState] Promise keys();
// FIXME: From https://github.com/slightlyoff/ServiceWorker/issues/372 and the updated
// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#cache-storage ,
// we have yet to implement match().
};