| 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 "bindings/core/v8/ScriptPromise.h" | 9 #include "bindings/core/v8/ScriptPromise.h" |
| 9 #include "bindings/core/v8/ScriptState.h" | 10 #include "bindings/core/v8/ScriptState.h" |
| 10 #include "bindings/core/v8/ScriptWrappable.h" | 11 #include "bindings/core/v8/ScriptWrappable.h" |
| 11 #include "modules/cachestorage/Cache.h" | 12 #include "modules/cachestorage/Cache.h" |
| 12 #include "modules/cachestorage/CacheQueryOptions.h" | 13 #include "modules/cachestorage/CacheQueryOptions.h" |
| 13 #include "modules/fetch/GlobalFetch.h" | 14 #include "modules/fetch/GlobalFetch.h" |
| 15 #include "platform/wtf/Forward.h" |
| 16 #include "platform/wtf/HashMap.h" |
| 17 #include "platform/wtf/Noncopyable.h" |
| 14 #include "public/platform/modules/serviceworker/WebServiceWorkerCacheStorage.h" | 18 #include "public/platform/modules/serviceworker/WebServiceWorkerCacheStorage.h" |
| 15 #include "wtf/Forward.h" | |
| 16 #include "wtf/HashMap.h" | |
| 17 #include "wtf/Noncopyable.h" | |
| 18 #include <memory> | |
| 19 | 19 |
| 20 namespace blink { | 20 namespace blink { |
| 21 | 21 |
| 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); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 |