| 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 "bindings/modules/v8/UnionTypesModules.h" | 10 #include "bindings/modules/v8/UnionTypesModules.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 void trace(Visitor*) { } | 48 void trace(Visitor*) { } |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 explicit Cache(WebServiceWorkerCache*); | 51 explicit Cache(WebServiceWorkerCache*); |
| 52 | 52 |
| 53 ScriptPromise matchImpl(ScriptState*, const Request*, const CacheQueryOption
s&); | 53 ScriptPromise matchImpl(ScriptState*, const Request*, const CacheQueryOption
s&); |
| 54 ScriptPromise matchAllImpl(ScriptState*, const Request*, const CacheQueryOpt
ions&); | 54 ScriptPromise matchAllImpl(ScriptState*, const Request*, const CacheQueryOpt
ions&); |
| 55 ScriptPromise addImpl(ScriptState*, const Request*); | 55 ScriptPromise addImpl(ScriptState*, const Request*); |
| 56 ScriptPromise addAllImpl(ScriptState*, const Vector<const Request*>); | 56 ScriptPromise addAllImpl(ScriptState*, const Vector<const Request*>); |
| 57 ScriptPromise deleteImpl(ScriptState*, const Request*, const CacheQueryOptio
ns&); | 57 ScriptPromise deleteImpl(ScriptState*, const Request*, const CacheQueryOptio
ns&); |
| 58 ScriptPromise putImpl(ScriptState*, const Request*, Response*); | 58 ScriptPromise putImpl(ScriptState*, Request*, Response*); |
| 59 ScriptPromise keysImpl(ScriptState*); | 59 ScriptPromise keysImpl(ScriptState*); |
| 60 ScriptPromise keysImpl(ScriptState*, const Request*, const CacheQueryOptions
&); | 60 ScriptPromise keysImpl(ScriptState*, const Request*, const CacheQueryOptions
&); |
| 61 | 61 |
| 62 OwnPtr<WebServiceWorkerCache> m_webCache; | 62 OwnPtr<WebServiceWorkerCache> m_webCache; |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 } // namespace blink | 65 } // namespace blink |
| 66 | 66 |
| 67 #endif // Cache_h | 67 #endif // Cache_h |
| OLD | NEW |