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

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

Issue 1029423004: Cache Storage: Add Platform API to retrieve CacheStorage for origin (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove cruft, rename arg Created 5 years, 9 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 d4ef8e8d374f886379ebb19e9e0bcc7b78521a79..2c483f42ca1af59f180f43563e1e8636a27b5406 100644
--- a/Source/modules/serviceworkers/CacheStorage.h
+++ b/Source/modules/serviceworkers/CacheStorage.h
@@ -10,6 +10,7 @@
#include "bindings/core/v8/ScriptWrappable.h"
#include "modules/serviceworkers/Cache.h"
#include "modules/serviceworkers/CacheQueryOptions.h"
+#include "public/platform/WebServiceWorkerCacheStorage.h"
#include "wtf/Forward.h"
#include "wtf/HashMap.h"
#include "wtf/Noncopyable.h"
@@ -19,7 +20,7 @@ namespace blink {
class Cache;
class WebServiceWorkerCacheStorage;
-class CacheStorage final : public GarbageCollected<CacheStorage>, public ScriptWrappable {
+class CacheStorage final : public GarbageCollectedFinalized<CacheStorage>, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
WTF_MAKE_NONCOPYABLE(CacheStorage);
public:
@@ -44,10 +45,10 @@ private:
friend class WithCacheCallbacks;
friend class DeleteCallbacks;
- explicit CacheStorage(WebServiceWorkerCacheStorage*);
+ explicit CacheStorage(PassOwnPtr<WebServiceWorkerCacheStorage>);
ScriptPromise matchImpl(ScriptState*, const Request*, const CacheQueryOptions&);
- WebServiceWorkerCacheStorage* m_webCacheStorage;
+ OwnPtr<WebServiceWorkerCacheStorage> m_webCacheStorage;
HeapHashMap<String, Member<Cache>> m_nameToCacheMap;
};
« 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