| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 ScriptPromise deleteFunction(ScriptState*, const RequestInfo&, const CacheQu
eryOptions&, ExceptionState&); | 42 ScriptPromise deleteFunction(ScriptState*, const RequestInfo&, const CacheQu
eryOptions&, ExceptionState&); |
| 43 ScriptPromise put(ScriptState*, const RequestInfo&, Response*, ExceptionStat
e&); | 43 ScriptPromise put(ScriptState*, const RequestInfo&, Response*, ExceptionStat
e&); |
| 44 ScriptPromise keys(ScriptState*, ExceptionState&); | 44 ScriptPromise keys(ScriptState*, ExceptionState&); |
| 45 ScriptPromise keys(ScriptState*, const RequestInfo&, const CacheQueryOptions
&, ExceptionState&); | 45 ScriptPromise keys(ScriptState*, const RequestInfo&, const CacheQueryOptions
&, ExceptionState&); |
| 46 | 46 |
| 47 static WebServiceWorkerCache::QueryParams toWebQueryParams(const CacheQueryO
ptions&); | 47 static WebServiceWorkerCache::QueryParams toWebQueryParams(const CacheQueryO
ptions&); |
| 48 | 48 |
| 49 DEFINE_INLINE_TRACE() { } | 49 DEFINE_INLINE_TRACE() { } |
| 50 | 50 |
| 51 private: | 51 private: |
| 52 class BarrierCallbackForPut; |
| 53 class BlobHandleCallbackForPut; |
| 52 class FetchResolvedForAdd; | 54 class FetchResolvedForAdd; |
| 53 class AsyncPutBatch; | |
| 54 friend class FetchResolvedForAdd; | 55 friend class FetchResolvedForAdd; |
| 55 Cache(WeakPtr<GlobalFetch::ScopedFetcher>, WebServiceWorkerCache*); | 56 Cache(WeakPtr<GlobalFetch::ScopedFetcher>, WebServiceWorkerCache*); |
| 56 | 57 |
| 57 ScriptPromise matchImpl(ScriptState*, const Request*, const CacheQueryOption
s&); | 58 ScriptPromise matchImpl(ScriptState*, const Request*, const CacheQueryOption
s&); |
| 58 ScriptPromise matchAllImpl(ScriptState*, const Request*, const CacheQueryOpt
ions&); | 59 ScriptPromise matchAllImpl(ScriptState*, const Request*, const CacheQueryOpt
ions&); |
| 59 ScriptPromise addAllImpl(ScriptState*, const Vector<Request*>&, ExceptionSta
te&); | 60 ScriptPromise addAllImpl(ScriptState*, const Vector<Request*>&, ExceptionSta
te&); |
| 60 ScriptPromise deleteImpl(ScriptState*, const Request*, const CacheQueryOptio
ns&); | 61 ScriptPromise deleteImpl(ScriptState*, const Request*, const CacheQueryOptio
ns&); |
| 61 ScriptPromise putImpl(ScriptState*, Request*, Response*); | 62 ScriptPromise putImpl(ScriptState*, const HeapVector<Member<Request>>&, cons
t HeapVector<Member<Response>>&); |
| 62 ScriptPromise keysImpl(ScriptState*); | 63 ScriptPromise keysImpl(ScriptState*); |
| 63 ScriptPromise keysImpl(ScriptState*, const Request*, const CacheQueryOptions
&); | 64 ScriptPromise keysImpl(ScriptState*, const Request*, const CacheQueryOptions
&); |
| 64 | 65 |
| 65 WebServiceWorkerCache* webCache() const; | 66 WebServiceWorkerCache* webCache() const; |
| 66 | 67 |
| 67 WeakPtr<GlobalFetch::ScopedFetcher> m_scopedFetcher; | 68 WeakPtr<GlobalFetch::ScopedFetcher> m_scopedFetcher; |
| 68 OwnPtr<WebServiceWorkerCache> m_webCache; | 69 OwnPtr<WebServiceWorkerCache> m_webCache; |
| 69 }; | 70 }; |
| 70 | 71 |
| 71 } // namespace blink | 72 } // namespace blink |
| 72 | 73 |
| 73 #endif // Cache_h | 74 #endif // Cache_h |
| OLD | NEW |