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

Unified Diff: content/browser/service_worker/service_worker_context_core.cc

Issue 459003002: Plumbs URLRequestContext and CacheBlobStorageContext down to cache. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cache1
Patch Set: Created 6 years, 4 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: content/browser/service_worker/service_worker_context_core.cc
diff --git a/content/browser/service_worker/service_worker_context_core.cc b/content/browser/service_worker/service_worker_context_core.cc
index 582a4c585a638ac460cab788acd6f4f046acd0cb..a878d999c3e104463af2216105412c144e650033 100644
--- a/content/browser/service_worker/service_worker_context_core.cc
+++ b/content/browser/service_worker/service_worker_context_core.cc
@@ -19,6 +19,7 @@
#include "content/browser/service_worker/service_worker_registration.h"
#include "content/browser/service_worker/service_worker_storage.h"
#include "content/public/browser/browser_thread.h"
+#include "net/url_request/url_request_context_getter.h"
#include "url/gurl.h"
namespace content {
@@ -97,8 +98,11 @@ ServiceWorkerContextCore::ServiceWorkerContextCore(
database_task_runner,
disk_cache_thread,
quota_manager_proxy)),
- fetch_stores_manager_(
- ServiceWorkerCacheStorageManager::Create(path, stores_task_runner)),
+ cache_storage_manager_(ServiceWorkerCacheStorageManager::Create(
+ path,
+ stores_task_runner,
+ wrapper->request_context_getter()->GetURLRequestContext(),
+ wrapper->blob_storage_context())),
michaeln 2014/08/12 03:48:52 which in turn will pass them to the along here...
embedded_worker_registry_(EmbeddedWorkerRegistry::Create(AsWeakPtr())),
job_coordinator_(new ServiceWorkerJobCoordinator(AsWeakPtr())),
next_handle_id_(0),
@@ -113,7 +117,7 @@ ServiceWorkerContextCore::ServiceWorkerContextCore(
providers_(old_context->providers_.release()),
storage_(
ServiceWorkerStorage::Create(AsWeakPtr(), old_context->storage())),
- fetch_stores_manager_(ServiceWorkerCacheStorageManager::Create(
+ cache_storage_manager_(ServiceWorkerCacheStorageManager::Create(
old_context->fetch_stores_manager())),
embedded_worker_registry_(EmbeddedWorkerRegistry::Create(
AsWeakPtr(),

Powered by Google App Engine
This is Rietveld 408576698