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

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

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
Index: Source/modules/serviceworkers/CacheStorage.cpp
diff --git a/Source/modules/serviceworkers/CacheStorage.cpp b/Source/modules/serviceworkers/CacheStorage.cpp
index a460b9d2457f2feb616db390af5c4152ec9445db..c7614f41878b5d1130decd803c97d0cf94dd9f3a 100644
--- a/Source/modules/serviceworkers/CacheStorage.cpp
+++ b/Source/modules/serviceworkers/CacheStorage.cpp
@@ -174,7 +174,7 @@ private:
CacheStorage* CacheStorage::create(WebServiceWorkerCacheStorage* webCacheStorage)
{
- return new CacheStorage(webCacheStorage);
+ return new CacheStorage(adoptPtr(webCacheStorage));
}
ScriptPromise CacheStorage::open(ScriptState* scriptState, const String& cacheName)
@@ -273,7 +273,7 @@ DEFINE_TRACE(CacheStorage)
visitor->trace(m_nameToCacheMap);
}
-CacheStorage::CacheStorage(WebServiceWorkerCacheStorage* webCacheStorage)
+CacheStorage::CacheStorage(PassOwnPtr<WebServiceWorkerCacheStorage> webCacheStorage)
: m_webCacheStorage(webCacheStorage)
{
}
« no previous file with comments | « Source/modules/serviceworkers/CacheStorage.h ('k') | Source/modules/serviceworkers/InspectorServiceWorkerCacheAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698