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

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: Rebase 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..7c0f705e99f4ab634762f7ce0004ef8be1cfdde5 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"
jkarlin 2014/08/12 19:22:15 I'll remove this line
jkarlin 2014/08/13 00:14:00 Done.
#include "url/gurl.h"
namespace content {
@@ -97,7 +98,7 @@ ServiceWorkerContextCore::ServiceWorkerContextCore(
database_task_runner,
disk_cache_thread,
quota_manager_proxy)),
- fetch_stores_manager_(
+ cache_storage_manager_(
ServiceWorkerCacheStorageManager::Create(path, stores_task_runner)),
embedded_worker_registry_(EmbeddedWorkerRegistry::Create(AsWeakPtr())),
job_coordinator_(new ServiceWorkerJobCoordinator(AsWeakPtr())),
@@ -113,7 +114,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(),
@@ -330,6 +331,15 @@ void ServiceWorkerContextCore::DeleteAndStartOver(
storage_->DeleteAndStartOver(callback);
}
+void ServiceWorkerContextCore::SetBlobParametersForCache(
+ net::URLRequestContext* request_context,
+ base::WeakPtr<webkit_blob::BlobStorageContext> blob_storage_context) {
+ DCHECK_CURRENTLY_ON(BrowserThread::IO);
+
+ cache_storage_manager_->SetBlobParametersForCache(request_context,
+ blob_storage_context);
+}
+
void ServiceWorkerContextCore::OnWorkerStarted(ServiceWorkerVersion* version) {
if (!observer_list_)
return;

Powered by Google App Engine
This is Rietveld 408576698