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

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

Issue 959933002: Move IDLs to 39 roll (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Created 5 years, 10 months 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 | « modules/serviceworkers/Body.idl ('k') | modules/serviceworkers/CacheStorage.idl » ('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 // FIXME: Blink doesn't support dictionary definitions. For now, we can use the
8 // Dictionary interface. See http://crbug.com/321462
9
10 // dictionary QueryParams {
11 // boolean ignoreSearch;
12 // boolean ignoreMethod;
13 // boolean ignoreVary;
14 // boolean prefixMatch;
15 // DOMString cacheName;
16 // };
17
18 [ 7 [
19 WillBeGarbageCollected, 8 GarbageCollected,
20 NoInterfaceObject,
21 Exposed=ServiceWorker, 9 Exposed=ServiceWorker,
22 RuntimeEnabled=ServiceWorker, 10 RuntimeEnabled=ServiceWorkerOnFetch,
23 ] interface Cache { 11 ] interface Cache {
24 // FIXME: Blink doesn't support union types, we use overrides instead. See htt p://crbug.com/240176 12 // FIXME: Blink doesn't support union types, we use overrides instead. See htt p://crbug.com/240176
25 13
26 // [CallWith=ScriptState] Promise match((Request or ScalarValueString) request , optional Dictionary queryParams); 14 // [CallWith=ScriptState] Promise match((Request or ScalarValueString) request , optional QueryParams queryParams);
27 [CallWith=ScriptState] Promise match(Request request, optional Dictionary quer yParams); 15 [CallWith=ScriptState] Promise match(Request request, optional QueryParams que ryParams);
28 [CallWith=ScriptState] Promise match(ScalarValueString request, optional Dicti onary queryParams); 16 [CallWith=ScriptState] Promise match(ScalarValueString request, optional Query Params queryParams);
29 17
30 // [CallWith=ScriptState] Promise matchAll((Request or ScalarValueString) requ est, optional Dictionary queryParams); 18 // [CallWith=ScriptState] Promise matchAll((Request or ScalarValueString) requ est, optional QueryParams queryParams);
31 [CallWith=ScriptState] Promise matchAll(Request request, optional Dictionary q ueryParams); 19 [CallWith=ScriptState] Promise matchAll(Request request, optional QueryParams queryParams);
32 [CallWith=ScriptState] Promise matchAll(ScalarValueString request, optional Di ctionary queryParams); 20 [CallWith=ScriptState] Promise matchAll(ScalarValueString request, optional Qu eryParams queryParams);
33 21
34 // [CallWith=ScriptState] Promise add((Request or ScalarValueString) request); 22 // [CallWith=ScriptState] Promise add((Request or ScalarValueString) request);
35 [CallWith=ScriptState] Promise add(Request request); 23 [CallWith=ScriptState] Promise add(Request request);
36 [CallWith=ScriptState] Promise add(ScalarValueString request); 24 [CallWith=ScriptState] Promise add(ScalarValueString request);
37 25
38 // FIXME: The lack of union type support together with the sequence mean we ca n't use overrides here, instead 26 // FIXME: The lack of union type support together with the sequence mean we ca n't use overrides here, instead
39 // bind a generic type. 27 // bind a generic type.
40 // [CallWith=ScriptState] Promise addAll(sequence<Request or ScalarValueString > requests); 28 // [CallWith=ScriptState] Promise addAll(sequence<Request or ScalarValueString > requests);
41 [CallWith=ScriptState] Promise addAll(sequence<any> requests); 29 [CallWith=ScriptState] Promise addAll(sequence<any> requests);
42 30
43 // [CallWith=ScriptState] Promise put((Request or ScalarValueString) request, Response response); 31 // [CallWith=ScriptState] Promise put((Request or ScalarValueString) request, Response response);
44 [CallWith=ScriptState] Promise put(Request request, Response response); 32 [CallWith=ScriptState] Promise put(Request request, Response response);
45 [CallWith=ScriptState] Promise put(ScalarValueString request, Response respons e); 33 [CallWith=ScriptState] Promise put(ScalarValueString request, Response respons e);
46 34
47 // [CallWith=ScriptState] Promise delete((Request or ScalarValueString) reques t, optional Dictionary queryParams); 35 // [CallWith=ScriptState] Promise delete((Request or ScalarValueString) reques t, optional QueryParams queryParams);
48 [CallWith=ScriptState, ImplementedAs=deleteFunction] Promise delete(Request re quest, optional Dictionary queryParams); 36 [CallWith=ScriptState, ImplementedAs=deleteFunction] Promise delete(Request re quest, optional QueryParams queryParams);
49 [CallWith=ScriptState, ImplementedAs=deleteFunction] Promise delete(ScalarValu eString request, optional Dictionary queryParams); 37 [CallWith=ScriptState, ImplementedAs=deleteFunction] Promise delete(ScalarValu eString request, optional QueryParams queryParams);
50 38
51 // [CallWith=ScriptState] Promise keys(optional (Request or ScalarValueString) request, optional Dictionary queryParams); 39 // [CallWith=ScriptState] Promise keys(optional (Request or ScalarValueString) request, optional QueryParams queryParams);
52 [CallWith=ScriptState] Promise keys(optional Request request, optional Diction ary queryParams); 40 [CallWith=ScriptState] Promise keys(optional Request request, optional QueryPa rams queryParams);
53 [CallWith=ScriptState] Promise keys(ScalarValueString request, optional Dictio nary queryParams); 41 [CallWith=ScriptState] Promise keys(ScalarValueString request, optional QueryP arams queryParams);
54 }; 42 };
OLDNEW
« no previous file with comments | « modules/serviceworkers/Body.idl ('k') | modules/serviceworkers/CacheStorage.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698