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 "bindings/core/v8/ScriptPromise.h" | 8 #include "bindings/core/v8/ScriptPromise.h" |
9 #include "bindings/core/v8/ScriptState.h" | 9 #include "bindings/core/v8/ScriptState.h" |
10 #include "bindings/core/v8/ScriptWrappable.h" | 10 #include "bindings/core/v8/ScriptWrappable.h" |
11 #include "modules/serviceworkers/Cache.h" | 11 #include "modules/cachestorage/Cache.h" |
12 #include "modules/serviceworkers/CacheQueryOptions.h" | 12 #include "modules/cachestorage/CacheQueryOptions.h" |
13 #include "public/platform/WebServiceWorkerCacheStorage.h" | 13 #include "public/platform/WebServiceWorkerCacheStorage.h" |
14 #include "wtf/Forward.h" | 14 #include "wtf/Forward.h" |
15 #include "wtf/HashMap.h" | 15 #include "wtf/HashMap.h" |
16 #include "wtf/Noncopyable.h" | 16 #include "wtf/Noncopyable.h" |
17 | 17 |
18 namespace blink { | 18 namespace blink { |
19 | 19 |
20 class Cache; | 20 class Cache; |
21 class WebServiceWorkerCacheStorage; | 21 class WebServiceWorkerCacheStorage; |
22 | 22 |
(...skipping 25 matching lines...) Expand all Loading... |
48 explicit CacheStorage(PassOwnPtr<WebServiceWorkerCacheStorage>); | 48 explicit CacheStorage(PassOwnPtr<WebServiceWorkerCacheStorage>); |
49 ScriptPromise matchImpl(ScriptState*, const Request*, const CacheQueryOption
s&); | 49 ScriptPromise matchImpl(ScriptState*, const Request*, const CacheQueryOption
s&); |
50 | 50 |
51 OwnPtr<WebServiceWorkerCacheStorage> m_webCacheStorage; | 51 OwnPtr<WebServiceWorkerCacheStorage> m_webCacheStorage; |
52 HeapHashMap<String, Member<Cache>> m_nameToCacheMap; | 52 HeapHashMap<String, Member<Cache>> m_nameToCacheMap; |
53 }; | 53 }; |
54 | 54 |
55 } // namespace blink | 55 } // namespace blink |
56 | 56 |
57 #endif // CacheStorage_h | 57 #endif // CacheStorage_h |
OLD | NEW |