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

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

Issue 380923002: Introducing the WebServiceWorkerCacheStorage. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase to trunk 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
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
« no previous file with comments | « no previous file | Source/modules/serviceworkers/CacheStorage.cpp » ('j') | Source/modules/serviceworkers/CacheStorage.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698