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

Side by Side Diff: Source/modules/serviceworkers/Cache.idl

Issue 694083002: Service Worker Cache: Simplify exception/rejection processing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add exception state to fixture Created 6 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/modules/serviceworkers/Cache.cpp ('k') | Source/modules/serviceworkers/CacheTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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,
11 TypeChecking=Interface, 11 TypeChecking=Interface,
12 ] interface Cache { 12 ] interface Cache {
13 // FIXME: Blink doesn't support union types, we use overrides instead. See htt p://crbug.com/240176 13 // FIXME: Blink doesn't support union types, we use overrides instead. See htt p://crbug.com/240176
14 14
15 // [CallWith=ScriptState] Promise match((Request or USVString) request, option al CacheQueryOptions options); 15 // [CallWith=ScriptState] Promise match((Request or USVString) request, option al CacheQueryOptions options);
16 [CallWith=ScriptState] Promise match(Request request, optional CacheQueryOptio ns options); 16 [CallWith=ScriptState] Promise match(Request request, optional CacheQueryOptio ns options);
17 [CallWith=ScriptState] Promise match(USVString request, optional CacheQueryOpt ions options); 17 [CallWith=ScriptState, RaisesException] Promise match(USVString request, optio nal CacheQueryOptions options);
18 18
19 // FIXME: Implement matchAll(): http://crbug.com/428363 19 // FIXME: Implement matchAll(): http://crbug.com/428363
20 // FIXME: First argument of matchAll() should be optional: http://crbug.com/42 5459 20 // FIXME: First argument of matchAll() should be optional: http://crbug.com/42 5459
21 // [CallWith=ScriptState] Promise matchAll((Request or USVString) request, opt ional CacheQueryOptions options); 21 // [CallWith=ScriptState] Promise matchAll((Request or USVString) request, opt ional CacheQueryOptions options);
22 // [CallWith=ScriptState] Promise matchAll(Request request, optional CacheQuer yOptions options); 22 // [CallWith=ScriptState] Promise matchAll(Request request, optional CacheQuer yOptions options);
23 // [CallWith=ScriptState] Promise matchAll(USVString request, optional CacheQu eryOptions options); 23 // [CallWith=ScriptState, RaisesException] Promise matchAll(USVString request, optional CacheQueryOptions options);
24 24
25 // FIXME: Implement add(): http://crbug.com/427652 25 // FIXME: Implement add(): http://crbug.com/427652
26 // [CallWith=ScriptState] Promise add((Request or USVString) request); 26 // [CallWith=ScriptState] Promise add((Request or USVString) request);
27 // [CallWith=ScriptState] Promise add(Request request); 27 // [CallWith=ScriptState] Promise add(Request request);
28 // [CallWith=ScriptState] 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] Promise put(Request request, Response response);
38 [CallWith=ScriptState] Promise put(USVString request, Response 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] 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] Promise keys(USVString request, optional CacheQueryOpti ons options); 46 [CallWith=ScriptState, RaisesException] Promise keys(USVString request, option al CacheQueryOptions options);
47 }; 47 };
OLDNEW
« no previous file with comments | « Source/modules/serviceworkers/Cache.cpp ('k') | Source/modules/serviceworkers/CacheTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698