Chromium Code Reviews| Index: Source/modules/serviceworkers/CacheStorage.h |
| diff --git a/Source/modules/serviceworkers/CacheStorage.h b/Source/modules/serviceworkers/CacheStorage.h |
| index 6d9176be90e9fa65738a6467152c2222f14799c6..33c9af94d72c50e2c68e8012f9f1057c81f04da7 100644 |
| --- a/Source/modules/serviceworkers/CacheStorage.h |
| +++ b/Source/modules/serviceworkers/CacheStorage.h |
| @@ -10,8 +10,13 @@ |
| #include "bindings/core/v8/ScriptWrappable.h" |
| #include "wtf/Forward.h" |
| #include "wtf/Noncopyable.h" |
| +#include "wtf/PassRefPtr.h" |
| #include "wtf/RefCounted.h" |
| +namespace blink { |
| +class WebServiceWorkerCacheStorage; |
| +} |
| + |
| namespace WebCore { |
| // See https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#cache-storage |
| @@ -19,7 +24,7 @@ namespace WebCore { |
| class CacheStorage FINAL : public RefCountedWillBeGarbageCollected<CacheStorage>, public ScriptWrappable { |
| WTF_MAKE_NONCOPYABLE(CacheStorage); |
| public: |
| - static PassRefPtrWillBeRawPtr<CacheStorage> create(); |
| + static PassRefPtrWillBeRawPtr<CacheStorage> create(blink::WebServiceWorkerCacheStorage*); |
| ScriptPromise createFunction(ScriptState*, const String& key); |
| ScriptPromise rename(ScriptState*, const String& oldKey, const String& newKey); |
| @@ -30,7 +35,9 @@ public: |
| void trace(Visitor*) { } |
| private: |
| - CacheStorage(); |
| + CacheStorage(blink::WebServiceWorkerCacheStorage*); |
|
michaeln
2014/07/25 20:25:19
explicit
gavinp
2014/07/28 02:10:16
Done.
|
| + |
| + blink::WebServiceWorkerCacheStorage* m_webCacheStorage; |
| }; |
| } // namespace WebCore |