Index: Source/modules/serviceworkers/CacheStorage.h |
diff --git a/Source/modules/serviceworkers/CacheStorage.h b/Source/modules/serviceworkers/CacheStorage.h |
index b01e723a2fa7313419c2c8bd1e54fba1a7be0c1c..3d6c5784f37cbc98850d1715e8da4ed11d58c273 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 PassRefPtr<CacheStorage> create(); |
+ static PassRefPtr<CacheStorage> create(blink::WebServiceWorkerCacheStorage*); |
virtual ~CacheStorage(); |
ScriptPromise createFunction(ScriptState*, const String& key); |
@@ -29,7 +34,9 @@ public: |
ScriptPromise keys(ScriptState*); |
private: |
- CacheStorage(); |
+ CacheStorage(blink::WebServiceWorkerCacheStorage*); |
+ |
+ blink::WebServiceWorkerCacheStorage* m_webCacheStorage; |
}; |
} // namespace WebCore |