OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // See https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.htm
l#cache | 5 // See https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.htm
l#cache |
6 | 6 |
7 [ | 7 [ |
8 GarbageCollected, | 8 GarbageCollected, |
9 Exposed=ServiceWorker, | 9 Exposed=ServiceWorker, |
10 RuntimeEnabled=ServiceWorkerCache, | 10 RuntimeEnabled=ServiceWorkerCache, |
(...skipping 16 matching lines...) Expand all Loading... |
27 // [CallWith=ScriptState] Promise add(Request request); | 27 // [CallWith=ScriptState] Promise add(Request request); |
28 // [CallWith=ScriptState, RaisesException] Promise add(USVString request); | 28 // [CallWith=ScriptState, RaisesException] Promise add(USVString request); |
29 | 29 |
30 // FIXME: Implement addAll(): http://crbug.com/427652 | 30 // FIXME: Implement addAll(): http://crbug.com/427652 |
31 // FIXME: The lack of union type support together with the sequence mean we ca
n't use overrides here, instead | 31 // FIXME: The lack of union type support together with the sequence mean we ca
n't use overrides here, instead |
32 // bind a generic type. | 32 // bind a generic type. |
33 // [CallWith=ScriptState] Promise addAll(sequence<Request or USVString> reques
ts); | 33 // [CallWith=ScriptState] Promise addAll(sequence<Request or USVString> reques
ts); |
34 // [CallWith=ScriptState] Promise addAll(sequence<any> requests); | 34 // [CallWith=ScriptState] Promise addAll(sequence<any> requests); |
35 | 35 |
36 // [CallWith=ScriptState] Promise put((Request or USVString) request, Response
response); | 36 // [CallWith=ScriptState] Promise put((Request or USVString) request, Response
response); |
37 [CallWith=ScriptState] Promise put(Request request, Response response); | 37 [CallWith=ScriptState, RaisesException] Promise put(Request request, Response
response); |
38 [CallWith=ScriptState, RaisesException] Promise put(USVString request, Respons
e response); | 38 [CallWith=ScriptState, RaisesException] Promise put(USVString request, Respons
e response); |
39 | 39 |
40 // [CallWith=ScriptState] Promise delete((Request or USVString) request, optio
nal CacheQueryOptions options); | 40 // [CallWith=ScriptState] Promise delete((Request or USVString) request, optio
nal CacheQueryOptions options); |
41 [CallWith=ScriptState, ImplementedAs=deleteFunction] Promise delete(Request re
quest, optional CacheQueryOptions options); | 41 [CallWith=ScriptState, ImplementedAs=deleteFunction] Promise delete(Request re
quest, optional CacheQueryOptions options); |
42 [CallWith=ScriptState, ImplementedAs=deleteFunction, RaisesException] Promise
delete(USVString request, optional CacheQueryOptions options); | 42 [CallWith=ScriptState, ImplementedAs=deleteFunction, RaisesException] Promise
delete(USVString request, optional CacheQueryOptions options); |
43 | 43 |
44 // [CallWith=ScriptState] Promise keys(optional (Request or USVString) request
, optional CacheQueryOptions options); | 44 // [CallWith=ScriptState] Promise keys(optional (Request or USVString) request
, optional CacheQueryOptions options); |
45 [CallWith=ScriptState] Promise keys(optional Request request, optional CacheQu
eryOptions options); | 45 [CallWith=ScriptState] Promise keys(optional Request request, optional CacheQu
eryOptions options); |
46 [CallWith=ScriptState, RaisesException] Promise keys(USVString request, option
al CacheQueryOptions options); | 46 [CallWith=ScriptState, RaisesException] Promise keys(USVString request, option
al CacheQueryOptions options); |
47 }; | 47 }; |
OLD | NEW |