Index: modules/serviceworkers/Cache.idl |
diff --git a/modules/serviceworkers/Cache.idl b/modules/serviceworkers/Cache.idl |
index 5f44e417fa3756698d9bf846f02efdbb874dd871..6da74e950821054742d76b225f95ca879f97b3fe 100644 |
--- a/modules/serviceworkers/Cache.idl |
+++ b/modules/serviceworkers/Cache.idl |
@@ -4,32 +4,20 @@ |
// See https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#cache |
-// FIXME: Blink doesn't support dictionary definitions. For now, we can use the |
-// Dictionary interface. See http://crbug.com/321462 |
- |
-// dictionary QueryParams { |
-// boolean ignoreSearch; |
-// boolean ignoreMethod; |
-// boolean ignoreVary; |
-// boolean prefixMatch; |
-// DOMString cacheName; |
-// }; |
- |
[ |
- WillBeGarbageCollected, |
- NoInterfaceObject, |
+ GarbageCollected, |
Exposed=ServiceWorker, |
- RuntimeEnabled=ServiceWorker, |
+ RuntimeEnabled=ServiceWorkerOnFetch, |
] interface Cache { |
// FIXME: Blink doesn't support union types, we use overrides instead. See http://crbug.com/240176 |
- // [CallWith=ScriptState] Promise match((Request or ScalarValueString) request, optional Dictionary queryParams); |
- [CallWith=ScriptState] Promise match(Request request, optional Dictionary queryParams); |
- [CallWith=ScriptState] Promise match(ScalarValueString request, optional Dictionary queryParams); |
+ // [CallWith=ScriptState] Promise match((Request or ScalarValueString) request, optional QueryParams queryParams); |
+ [CallWith=ScriptState] Promise match(Request request, optional QueryParams queryParams); |
+ [CallWith=ScriptState] Promise match(ScalarValueString request, optional QueryParams queryParams); |
- // [CallWith=ScriptState] Promise matchAll((Request or ScalarValueString) request, optional Dictionary queryParams); |
- [CallWith=ScriptState] Promise matchAll(Request request, optional Dictionary queryParams); |
- [CallWith=ScriptState] Promise matchAll(ScalarValueString request, optional Dictionary queryParams); |
+ // [CallWith=ScriptState] Promise matchAll((Request or ScalarValueString) request, optional QueryParams queryParams); |
+ [CallWith=ScriptState] Promise matchAll(Request request, optional QueryParams queryParams); |
+ [CallWith=ScriptState] Promise matchAll(ScalarValueString request, optional QueryParams queryParams); |
// [CallWith=ScriptState] Promise add((Request or ScalarValueString) request); |
[CallWith=ScriptState] Promise add(Request request); |
@@ -44,11 +32,11 @@ |
[CallWith=ScriptState] Promise put(Request request, Response response); |
[CallWith=ScriptState] Promise put(ScalarValueString request, Response response); |
- // [CallWith=ScriptState] Promise delete((Request or ScalarValueString) request, optional Dictionary queryParams); |
- [CallWith=ScriptState, ImplementedAs=deleteFunction] Promise delete(Request request, optional Dictionary queryParams); |
- [CallWith=ScriptState, ImplementedAs=deleteFunction] Promise delete(ScalarValueString request, optional Dictionary queryParams); |
+ // [CallWith=ScriptState] Promise delete((Request or ScalarValueString) request, optional QueryParams queryParams); |
+ [CallWith=ScriptState, ImplementedAs=deleteFunction] Promise delete(Request request, optional QueryParams queryParams); |
+ [CallWith=ScriptState, ImplementedAs=deleteFunction] Promise delete(ScalarValueString request, optional QueryParams queryParams); |
- // [CallWith=ScriptState] Promise keys(optional (Request or ScalarValueString) request, optional Dictionary queryParams); |
- [CallWith=ScriptState] Promise keys(optional Request request, optional Dictionary queryParams); |
- [CallWith=ScriptState] Promise keys(ScalarValueString request, optional Dictionary queryParams); |
+ // [CallWith=ScriptState] Promise keys(optional (Request or ScalarValueString) request, optional QueryParams queryParams); |
+ [CallWith=ScriptState] Promise keys(optional Request request, optional QueryParams queryParams); |
+ [CallWith=ScriptState] Promise keys(ScalarValueString request, optional QueryParams queryParams); |
}; |