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

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

Issue 434543002: Introducing the ServiceWorker Cache object. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remediate and update to spec Created 6 years, 4 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 // FIXME: Blink doesn't support dictionary definitions. For now, we can use the
6 // Dictionary interface. See http://crbug.com/321462
7
8 // dictionary QueryParams {
9 // boolean ignoreSearch;
10 // boolean ignoreMethod;
11 // boolean ignoreVary;
12 // boolean prefixMatch;
13 // DOMString cacheName;
14 // };
15
16 [
17 WillBeGarbageCollected,
18 NoInterfaceObject,
19 Exposed=ServiceWorker,
20 RuntimeEnabled=ServiceWorker,
21 ] interface Cache {
22 // FIXME: Blink doesn't support union types, we use overrides instead. See htt p://crbug.com/240176
23
24 // [CallWith=ScriptState] Promise match((Request or ScalarValueString) request , optional Dictionary queryParams);
25 [CallWith=ScriptState] Promise match(Request request, optional Dictionary quer yParams);
26 [CallWith=ScriptState] Promise match(ScalarValueString request, optional Dicti onary queryParams);
27
28 // [CallWith=ScriptState] Promise matchAll((Request or ScalarValueString) requ est, optional Dictionary queryParams);
29 [CallWith=ScriptState] Promise matchAll(Request request, optional Dictionary q ueryParams);
30 [CallWith=ScriptState] Promise matchAll(ScalarValueString request, optional Di ctionary queryParams);
31
32 // [CallWith=ScriptState] Promise add((Request or ScalarValueString) request);
33 [CallWith=ScriptState] Promise add(Request request);
34
35 // FIXME: The lack of union type support together with the sequence mean we ca n't use overrides here, instead
36 // bind a generic type.
37 // [CallWith=ScriptState] Promise addAll(sequence<Request or ScalarValueString > requests);
38 [CallWith=ScriptState] Promise addAll(sequence<any> requests);
39
40 // [CallWith=ScriptState] Promise put((Request or ScalarValueString) request, Response response);
41 [CallWith=ScriptState] Promise put(Request request, Response response);
42 [CallWith=ScriptState] Promise put(ScalarValueString request, Response respons e);
43
44 // [CallWith=ScriptState] Promise delete((Request or ScalarValueString) reques t, optional Dictionary queryParams);
45 [CallWith=ScriptState, ImplementedAs=deleteFunction] Promise delete(Request re quest, optional Dictionary queryParams);
46 [CallWith=ScriptState, ImplementedAs=deleteFunction] Promise delete(ScalarValu eString request, optional Dictionary queryParams);
47
48 // [CallWith=ScriptState] Promise keys(optional (Request or ScalarValueString) request, optional Dictionary queryParams);
49 [CallWith=ScriptState] Promise keys(optional Request request, optional Diction ary queryParams);
50 [CallWith=ScriptState] Promise keys(ScalarValueString request, optional Dictio nary queryParams);
51 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698