Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1491)

Unified Diff: Source/modules/serviceworkers/FetchStores.idl

Issue 424643002: Introducing the WebServiceWorkerCacheStorage (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: combine with prior CL Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/modules/serviceworkers/FetchStores.idl
diff --git a/Source/modules/serviceworkers/FetchStores.idl b/Source/modules/serviceworkers/FetchStores.idl
new file mode 100644
index 0000000000000000000000000000000000000000..7568c622f1c261860b9ef39e381da399dc01752b
--- /dev/null
+++ b/Source/modules/serviceworkers/FetchStores.idl
@@ -0,0 +1,19 @@
+// 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.
+
+[
+ WillBeGarbageCollected,
+ NoInterfaceObject,
+ Exposed=ServiceWorker,
+ RuntimeEnabled=ServiceWorker,
+] interface FetchStores {
+ [CallWith=ScriptState] Promise get(ScalarValueString fetchStoreName);
+ [CallWith=ScriptState] Promise has(ScalarValueString fetchStoreName);
+ [CallWith=ScriptState, ImplementedAs=createFunction] Promise create(ScalarValueString fetchStoreName);
+ [CallWith=ScriptState, ImplementedAs=deleteFunction] Promise delete(ScalarValueString fetchStoreName);
+ [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().
+};

Powered by Google App Engine
This is Rietveld 408576698