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(). |
+}; |