| 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 CacheStorage_h | 5 #ifndef CacheStorage_h |
| 6 #define CacheStorage_h | 6 #define CacheStorage_h |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include "bindings/core/v8/ScriptPromise.h" | 9 #include "bindings/core/v8/ScriptPromise.h" |
| 10 #include "bindings/core/v8/ScriptState.h" | 10 #include "bindings/core/v8/ScriptState.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 class Cache; | 22 class Cache; |
| 23 class WebServiceWorkerCacheStorage; | 23 class WebServiceWorkerCacheStorage; |
| 24 | 24 |
| 25 class CacheStorage final : public GarbageCollectedFinalized<CacheStorage>, | 25 class CacheStorage final : public GarbageCollectedFinalized<CacheStorage>, |
| 26 public ScriptWrappable { | 26 public ScriptWrappable { |
| 27 DEFINE_WRAPPERTYPEINFO(); | 27 DEFINE_WRAPPERTYPEINFO(); |
| 28 WTF_MAKE_NONCOPYABLE(CacheStorage); | 28 WTF_MAKE_NONCOPYABLE(CacheStorage); |
| 29 | 29 |
| 30 public: | 30 public: |
| 31 static CacheStorage* Create(GlobalFetch::ScopedFetcher*, | 31 static CacheStorage* Create(GlobalFetch::ScopedFetcher*, |
| 32 std::unique_ptr<WebServiceWorkerCacheStorage>); | 32 WebServiceWorkerCacheStorage*); |
| 33 ~CacheStorage(); | 33 ~CacheStorage(); |
| 34 void Dispose(); | 34 void Dispose(); |
| 35 | 35 |
| 36 ScriptPromise open(ScriptState*, const String& cache_name, ExceptionState&); | 36 ScriptPromise open(ScriptState*, const String& cache_name, ExceptionState&); |
| 37 ScriptPromise has(ScriptState*, const String& cache_name, ExceptionState&); | 37 ScriptPromise has(ScriptState*, const String& cache_name, ExceptionState&); |
| 38 ScriptPromise deleteFunction(ScriptState*, | 38 ScriptPromise deleteFunction(ScriptState*, |
| 39 const String& cache_name, | 39 const String& cache_name, |
| 40 ExceptionState&); | 40 ExceptionState&); |
| 41 ScriptPromise keys(ScriptState*, ExceptionState&); | 41 ScriptPromise keys(ScriptState*, ExceptionState&); |
| 42 ScriptPromise match(ScriptState*, | 42 ScriptPromise match(ScriptState*, |
| (...skipping 19 matching lines...) Expand all Loading... |
| 62 const Request*, | 62 const Request*, |
| 63 const CacheQueryOptions&); | 63 const CacheQueryOptions&); |
| 64 | 64 |
| 65 Member<GlobalFetch::ScopedFetcher> scoped_fetcher_; | 65 Member<GlobalFetch::ScopedFetcher> scoped_fetcher_; |
| 66 std::unique_ptr<WebServiceWorkerCacheStorage> web_cache_storage_; | 66 std::unique_ptr<WebServiceWorkerCacheStorage> web_cache_storage_; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 } // namespace blink | 69 } // namespace blink |
| 70 | 70 |
| 71 #endif // CacheStorage_h | 71 #endif // CacheStorage_h |
| OLD | NEW |