| 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 // FIXME: Blink doesn't support dictionary definitions. For now, we can use the | 7 // FIXME: Blink doesn't support dictionary definitions. For now, we can use the |
| 8 // Dictionary interface. See http://crbug.com/321462 | 8 // Dictionary interface. See http://crbug.com/321462 |
| 9 | 9 |
| 10 // dictionary QueryParams { | 10 // dictionary QueryParams { |
| 11 // boolean ignoreSearch; | 11 // boolean ignoreSearch; |
| 12 // boolean ignoreMethod; | 12 // boolean ignoreMethod; |
| 13 // boolean ignoreVary; | 13 // boolean ignoreVary; |
| 14 // boolean prefixMatch; | 14 // boolean prefixMatch; |
| 15 // DOMString cacheName; | 15 // // FIXME: Not used until CacheStorage.match() is implemented. |
| 16 // // DOMString cacheName; |
| 16 // }; | 17 // }; |
| 17 | 18 |
| 18 [ | 19 [ |
| 19 WillBeGarbageCollected, | 20 WillBeGarbageCollected, |
| 20 NoInterfaceObject, | 21 NoInterfaceObject, |
| 21 Exposed=ServiceWorker, | 22 Exposed=ServiceWorker, |
| 22 RuntimeEnabled=ServiceWorker, | 23 RuntimeEnabled=ServiceWorker, |
| 23 ] interface Cache { | 24 ] interface Cache { |
| 24 // FIXME: Blink doesn't support union types, we use overrides instead. See htt
p://crbug.com/240176 | 25 // FIXME: Blink doesn't support union types, we use overrides instead. See htt
p://crbug.com/240176 |
| 25 | 26 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 44 [CallWith=ScriptState] Promise put(ScalarValueString request, Response respons
e); | 45 [CallWith=ScriptState] Promise put(ScalarValueString request, Response respons
e); |
| 45 | 46 |
| 46 // [CallWith=ScriptState] Promise delete((Request or ScalarValueString) reques
t, optional Dictionary queryParams); | 47 // [CallWith=ScriptState] Promise delete((Request or ScalarValueString) reques
t, optional Dictionary queryParams); |
| 47 [CallWith=ScriptState, ImplementedAs=deleteFunction] Promise delete(Request re
quest, optional Dictionary queryParams); | 48 [CallWith=ScriptState, ImplementedAs=deleteFunction] Promise delete(Request re
quest, optional Dictionary queryParams); |
| 48 [CallWith=ScriptState, ImplementedAs=deleteFunction] Promise delete(ScalarValu
eString request, optional Dictionary queryParams); | 49 [CallWith=ScriptState, ImplementedAs=deleteFunction] Promise delete(ScalarValu
eString request, optional Dictionary queryParams); |
| 49 | 50 |
| 50 // [CallWith=ScriptState] Promise keys(optional (Request or ScalarValueString)
request, optional Dictionary queryParams); | 51 // [CallWith=ScriptState] Promise keys(optional (Request or ScalarValueString)
request, optional Dictionary queryParams); |
| 51 [CallWith=ScriptState] Promise keys(optional Request request, optional Diction
ary queryParams); | 52 [CallWith=ScriptState] Promise keys(optional Request request, optional Diction
ary queryParams); |
| 52 [CallWith=ScriptState] Promise keys(ScalarValueString request, optional Dictio
nary queryParams); | 53 [CallWith=ScriptState] Promise keys(ScalarValueString request, optional Dictio
nary queryParams); |
| 53 }; | 54 }; |
| OLD | NEW |