Index: Source/modules/serviceworkers/CacheStorage.h |
diff --git a/Source/modules/serviceworkers/CacheStorage.h b/Source/modules/serviceworkers/CacheStorage.h |
index 6d9176be90e9fa65738a6467152c2222f14799c6..81b294640410d57b9f0f8768e5fe9605865de926 100644 |
--- a/Source/modules/serviceworkers/CacheStorage.h |
+++ b/Source/modules/serviceworkers/CacheStorage.h |
@@ -12,6 +12,10 @@ |
#include "wtf/Noncopyable.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 +23,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 +34,9 @@ public: |
void trace(Visitor*) { } |
private: |
- CacheStorage(); |
+ explicit CacheStorage(blink::WebServiceWorkerCacheStorage*); |
+ |
+ blink::WebServiceWorkerCacheStorage* m_webCacheStorage; |
}; |
} // namespace WebCore |