Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4749)

Unified Diff: Source/modules/serviceworkers/CacheStorage.h

Issue 380923002: Introducing the WebServiceWorkerCacheStorage. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remediation to michaeln's review Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/modules/serviceworkers/CacheStorage.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | Source/modules/serviceworkers/CacheStorage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698