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

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

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_wrapper.h
diff --git a/content/browser/service_worker/service_worker_context_wrapper.h b/content/browser/service_worker/service_worker_context_wrapper.h
index e593b240bf04a1ac31517f4966b45e7a70498ce3..3081e535f0b59090b351799484911562efd39353 100644
--- a/content/browser/service_worker/service_worker_context_wrapper.h
+++ b/content/browser/service_worker/service_worker_context_wrapper.h
@@ -20,6 +20,10 @@ class MessageLoopProxy;
class SequencedTaskRunner;
}
+namespace net {
+class URLRequestContext;
+}
+
namespace quota {
class QuotaManagerProxy;
}
@@ -27,6 +31,7 @@ class QuotaManagerProxy;
namespace content {
class BrowserContext;
+class ChromeBlobStorageContext;
class ServiceWorkerContextCore;
class ServiceWorkerContextObserver;
@@ -74,6 +79,14 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
bool is_incognito() const { return is_incognito_; }
+ // The URLRequestContext doesn't exist until after the StoragePartition is
+ // made (which is after this object is made). This function must be called
+ // after this object is created but before any ServiceWorkerCache operations.
+ // It must be called on the IO thread.
+ void SetBlobParametersForCache(
+ net::URLRequestContext* request_context,
+ base::WeakPtr<webkit_blob::BlobStorageContext> blob_storage_context);
+
private:
friend class base::RefCountedThreadSafe<ServiceWorkerContextWrapper>;
friend class EmbeddedWorkerTestHelper;

Powered by Google App Engine
This is Rietveld 408576698