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

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

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

Powered by Google App Engine
This is Rietveld 408576698