Index: Source/modules/serviceworkers/Cache.idl |
diff --git a/Source/modules/serviceworkers/Cache.idl b/Source/modules/serviceworkers/Cache.idl |
index 9ffbf8e1b25ae1cc1183231799c38ceb83273a9c..50943be845cde4323c695f2f9eaf814f2bd1f556 100644 |
--- a/Source/modules/serviceworkers/Cache.idl |
+++ b/Source/modules/serviceworkers/Cache.idl |
@@ -12,21 +12,19 @@ typedef (Request or USVString) RequestInfo; |
RuntimeEnabled=ServiceWorkerCache, |
TypeChecking=Interface, |
] interface Cache { |
- [CallWith=ScriptState, RaisesException] Promise match(RequestInfo request, optional CacheQueryOptions options); |
+ [CallWith=ScriptState, RaisesException] Promise<Response> match(RequestInfo request, optional CacheQueryOptions options); |
// FIXME: Implement matchAll(): http://crbug.com/428363 |
// FIXME: First argument of matchAll() should be optional: http://crbug.com/425459 |
- // [CallWith=ScriptState, RaisesException] Promise matchAll(RequestInfo request, optional CacheQueryOptions options); |
+ // [CallWith=ScriptState, RaisesException] Promise<sequence<Response>> matchAll(RequestInfo request, optional CacheQueryOptions options); |
// FIXME: Implement add(): http://crbug.com/427652 |
- // [CallWith=ScriptState, RaisesException] Promise add(RequestInfo request); |
+ // [CallWith=ScriptState, RaisesException] Promise<void> add(RequestInfo request); |
// FIXME: Implement addAll(): http://crbug.com/427652 |
- // FIXME: Sequences of Unions are not yet supported, instead bind a generic type. http://crbug.com/240176 |
- // [CallWith=ScriptState] Promise addAll(sequence<RequestInfo> requests); |
- // [CallWith=ScriptState] Promise addAll(sequence<any> requests); |
+ // [CallWith=ScriptState] Promise<void> addAll(sequence<RequestInfo> requests); |
- [CallWith=ScriptState, RaisesException] Promise put(RequestInfo request, Response response); |
- [CallWith=ScriptState, ImplementedAs=deleteFunction, RaisesException] Promise delete(RequestInfo request, optional CacheQueryOptions options); |
- [CallWith=ScriptState, RaisesException] Promise keys(optional RequestInfo request, optional CacheQueryOptions options); |
+ [CallWith=ScriptState, RaisesException] Promise<void> put(RequestInfo request, Response response); |
+ [CallWith=ScriptState, ImplementedAs=deleteFunction, RaisesException] Promise<boolean> delete(RequestInfo request, optional CacheQueryOptions options); |
+ [CallWith=ScriptState, RaisesException] Promise<sequence<Response>> keys(optional RequestInfo request, optional CacheQueryOptions options); |
}; |