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 "core/dom/DOMException.h" | 10 #include "core/dom/DOMException.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 // From Cache.idl: | 33 // From Cache.idl: |
34 ScriptPromise match(ScriptState*, Request*, const CacheQueryOptions&); | 34 ScriptPromise match(ScriptState*, Request*, const CacheQueryOptions&); |
35 ScriptPromise match(ScriptState*, const String&, const CacheQueryOptions&, E
xceptionState&); | 35 ScriptPromise match(ScriptState*, const String&, const CacheQueryOptions&, E
xceptionState&); |
36 ScriptPromise matchAll(ScriptState*, Request*, const CacheQueryOptions&); | 36 ScriptPromise matchAll(ScriptState*, Request*, const CacheQueryOptions&); |
37 ScriptPromise matchAll(ScriptState*, const String&, const CacheQueryOptions&
, ExceptionState&); | 37 ScriptPromise matchAll(ScriptState*, const String&, const CacheQueryOptions&
, ExceptionState&); |
38 ScriptPromise add(ScriptState*, Request*); | 38 ScriptPromise add(ScriptState*, Request*); |
39 ScriptPromise add(ScriptState*, const String&, ExceptionState&); | 39 ScriptPromise add(ScriptState*, const String&, ExceptionState&); |
40 ScriptPromise addAll(ScriptState*, const Vector<ScriptValue>&); | 40 ScriptPromise addAll(ScriptState*, const Vector<ScriptValue>&); |
41 ScriptPromise deleteFunction(ScriptState*, Request*, const CacheQueryOptions
&); | 41 ScriptPromise deleteFunction(ScriptState*, Request*, const CacheQueryOptions
&); |
42 ScriptPromise deleteFunction(ScriptState*, const String&, const CacheQueryOp
tions&, ExceptionState&); | 42 ScriptPromise deleteFunction(ScriptState*, const String&, const CacheQueryOp
tions&, ExceptionState&); |
43 ScriptPromise put(ScriptState*, Request*, Response*); | 43 ScriptPromise put(ScriptState*, Request*, Response*, ExceptionState&); |
44 ScriptPromise put(ScriptState*, const String&, Response*, ExceptionState&); | 44 ScriptPromise put(ScriptState*, const String&, Response*, ExceptionState&); |
45 ScriptPromise keys(ScriptState*); | 45 ScriptPromise keys(ScriptState*); |
46 ScriptPromise keys(ScriptState*, Request*, const CacheQueryOptions&); | 46 ScriptPromise keys(ScriptState*, Request*, const CacheQueryOptions&); |
47 ScriptPromise keys(ScriptState*, const String&, const CacheQueryOptions&, Ex
ceptionState&); | 47 ScriptPromise keys(ScriptState*, const String&, const CacheQueryOptions&, Ex
ceptionState&); |
48 | 48 |
49 static PassRefPtrWillBeRawPtr<DOMException> domExceptionForCacheError(WebSer
viceWorkerCacheError); | 49 static PassRefPtrWillBeRawPtr<DOMException> domExceptionForCacheError(WebSer
viceWorkerCacheError); |
50 | 50 |
51 void trace(Visitor*) { } | 51 void trace(Visitor*) { } |
52 | 52 |
53 private: | 53 private: |
54 explicit Cache(WebServiceWorkerCache*); | 54 explicit Cache(WebServiceWorkerCache*); |
55 | 55 |
56 ScriptPromise matchImpl(ScriptState*, const Request*, const CacheQueryOption
s&); | 56 ScriptPromise matchImpl(ScriptState*, const Request*, const CacheQueryOption
s&); |
57 ScriptPromise matchAllImpl(ScriptState*, const Request*, const CacheQueryOpt
ions&); | 57 ScriptPromise matchAllImpl(ScriptState*, const Request*, const CacheQueryOpt
ions&); |
58 ScriptPromise addImpl(ScriptState*, const Request*); | 58 ScriptPromise addImpl(ScriptState*, const Request*); |
59 ScriptPromise addAllImpl(ScriptState*, const Vector<const Request*>); | 59 ScriptPromise addAllImpl(ScriptState*, const Vector<const Request*>); |
60 ScriptPromise deleteImpl(ScriptState*, const Request*, const CacheQueryOptio
ns&); | 60 ScriptPromise deleteImpl(ScriptState*, const Request*, const CacheQueryOptio
ns&); |
61 ScriptPromise putImpl(ScriptState*, const Request*, Response*); | 61 ScriptPromise putImpl(ScriptState*, const Request*, Response*); |
62 ScriptPromise keysImpl(ScriptState*); | 62 ScriptPromise keysImpl(ScriptState*); |
63 ScriptPromise keysImpl(ScriptState*, const Request*, const CacheQueryOptions
&); | 63 ScriptPromise keysImpl(ScriptState*, const Request*, const CacheQueryOptions
&); |
64 | 64 |
65 OwnPtr<WebServiceWorkerCache> m_webCache; | 65 OwnPtr<WebServiceWorkerCache> m_webCache; |
66 }; | 66 }; |
67 | 67 |
68 } // namespace blink | 68 } // namespace blink |
69 | 69 |
70 #endif // Cache_h | 70 #endif // Cache_h |
OLD | NEW |