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

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

Issue 459003002: Plumbs URLRequestContext and CacheBlobStorageContext down to cache. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cache1
Patch Set: Addresses michaeln's comments from PS5 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.h
diff --git a/content/browser/service_worker/service_worker_context_core.h b/content/browser/service_worker/service_worker_context_core.h
index eacbd857973ed276a7f2a5643f0881adbdc27e43..836128f5fda07244b9e8c300732d6dd180635d48 100644
--- a/content/browser/service_worker/service_worker_context_core.h
+++ b/content/browser/service_worker/service_worker_context_core.h
@@ -29,6 +29,10 @@ class MessageLoopProxy;
class SequencedTaskRunner;
}
+namespace net {
+class URLRequestContext;
+}
+
namespace quota {
class QuotaManagerProxy;
}
@@ -122,7 +126,7 @@ class CONTENT_EXPORT ServiceWorkerContextCore
ServiceWorkerStorage* storage() { return storage_.get(); }
ServiceWorkerCacheStorageManager* fetch_stores_manager() {
michaeln 2014/08/13 02:03:37 also rename the getter
jkarlin 2014/08/13 11:56:41 Done.
- return fetch_stores_manager_.get();
+ return cache_storage_manager_.get();
}
ServiceWorkerProcessManager* process_manager();
EmbeddedWorkerRegistry* embedded_worker_registry() {
@@ -173,6 +177,10 @@ class CONTENT_EXPORT ServiceWorkerContextCore
// in a disabled state until it's done.
void DeleteAndStartOver(const StatusCallback& callback);
+ void SetBlobParametersForCache(
+ net::URLRequestContext* request_context,
+ base::WeakPtr<webkit_blob::BlobStorageContext> blob_storage_context);
+
base::WeakPtr<ServiceWorkerContextCore> AsWeakPtr() {
return weak_factory_.GetWeakPtr();
}
@@ -202,7 +210,7 @@ class CONTENT_EXPORT ServiceWorkerContextCore
ServiceWorkerContextWrapper* wrapper_;
scoped_ptr<ProcessToProviderMap> providers_;
scoped_ptr<ServiceWorkerStorage> storage_;
- scoped_ptr<ServiceWorkerCacheStorageManager> fetch_stores_manager_;
+ scoped_ptr<ServiceWorkerCacheStorageManager> cache_storage_manager_;
scoped_refptr<EmbeddedWorkerRegistry> embedded_worker_registry_;
scoped_ptr<ServiceWorkerJobCoordinator> job_coordinator_;
std::map<int64, ServiceWorkerRegistration*> live_registrations_;

Powered by Google App Engine
This is Rietveld 408576698