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 #ifndef Cache_h | 5 #ifndef Cache_h |
6 #define Cache_h | 6 #define Cache_h |
7 | 7 |
8 #include "bindings/core/v8/ScriptPromise.h" | 8 #include "bindings/core/v8/ScriptPromise.h" |
9 #include "bindings/core/v8/ScriptWrappable.h" | 9 #include "bindings/core/v8/ScriptWrappable.h" |
10 #include "wtf/Forward.h" | 10 #include "wtf/Forward.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 public: | 27 public: |
28 static PassRefPtrWillBeRawPtr<Cache> fromWebServiceWorkerCache(WebServiceWor
kerCache*); | 28 static PassRefPtrWillBeRawPtr<Cache> fromWebServiceWorkerCache(WebServiceWor
kerCache*); |
29 | 29 |
30 // From Cache.idl: | 30 // From Cache.idl: |
31 ScriptPromise match(ScriptState*, Request*, const Dictionary& queryParams); | 31 ScriptPromise match(ScriptState*, Request*, const Dictionary& queryParams); |
32 ScriptPromise match(ScriptState*, const String&, const Dictionary& queryPara
ms); | 32 ScriptPromise match(ScriptState*, const String&, const Dictionary& queryPara
ms); |
33 ScriptPromise matchAll(ScriptState*, Request*, const Dictionary& queryParams
); | 33 ScriptPromise matchAll(ScriptState*, Request*, const Dictionary& queryParams
); |
34 ScriptPromise matchAll(ScriptState*, const String&, const Dictionary& queryP
arams); | 34 ScriptPromise matchAll(ScriptState*, const String&, const Dictionary& queryP
arams); |
35 ScriptPromise add(ScriptState*, Request*); | 35 ScriptPromise add(ScriptState*, Request*); |
36 ScriptPromise add(ScriptState*, const String&); | 36 ScriptPromise add(ScriptState*, const String&); |
37 ScriptPromise addAll(ScriptState*, const WillBeHeapVector<ScriptValue>&); | 37 ScriptPromise addAll(ScriptState*, const Vector<ScriptValue>&); |
38 ScriptPromise deleteFunction(ScriptState*, Request*, const Dictionary& query
Params); | 38 ScriptPromise deleteFunction(ScriptState*, Request*, const Dictionary& query
Params); |
39 ScriptPromise deleteFunction(ScriptState*, const String&, const Dictionary&
queryParams); | 39 ScriptPromise deleteFunction(ScriptState*, const String&, const Dictionary&
queryParams); |
40 ScriptPromise put(ScriptState*, Request*, Response*); | 40 ScriptPromise put(ScriptState*, Request*, Response*); |
41 ScriptPromise put(ScriptState*, const String&, Response*); | 41 ScriptPromise put(ScriptState*, const String&, Response*); |
42 ScriptPromise keys(ScriptState*); | 42 ScriptPromise keys(ScriptState*); |
43 ScriptPromise keys(ScriptState*, Request*, const Dictionary& queryParams); | 43 ScriptPromise keys(ScriptState*, Request*, const Dictionary& queryParams); |
44 ScriptPromise keys(ScriptState*, const String&, const Dictionary& queryParam
s); | 44 ScriptPromise keys(ScriptState*, const String&, const Dictionary& queryParam
s); |
45 | 45 |
46 void trace(Visitor*) { } | 46 void trace(Visitor*) { } |
47 | 47 |
48 private: | 48 private: |
49 explicit Cache(WebServiceWorkerCache* webCache); | 49 explicit Cache(WebServiceWorkerCache* webCache); |
50 | 50 |
51 WebServiceWorkerCache const* ALLOW_UNUSED m_webCache; | 51 WebServiceWorkerCache const* ALLOW_UNUSED m_webCache; |
52 }; | 52 }; |
53 | 53 |
54 } // namespace blink | 54 } // namespace blink |
55 | 55 |
56 #endif // Cache_h | 56 #endif // Cache_h |
OLD | NEW |