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

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: nits 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 8da96f558effdc5d7ef36414842e611d67785920..4aa718c1c6b26543d79034f62a287ff1a76b1de7 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 URLRequestContextGetter;
+}
+
namespace quota {
class QuotaManagerProxy;
}
@@ -27,6 +31,7 @@ class QuotaManagerProxy;
namespace content {
class BrowserContext;
+class ChromeBlobStorageContext;
class ServiceWorkerContextCore;
class ServiceWorkerContextObserver;
@@ -76,6 +81,16 @@ 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. If either parameter is NULL the
+ // function immediately returns without forwarding to the
+ // ServiceWorkerCacheStorageManager.
+ void SetBlobParametersForCache(
+ net::URLRequestContextGetter* request_context,
+ ChromeBlobStorageContext* blob_storage_context);
+
private:
friend class base::RefCountedThreadSafe<ServiceWorkerContextWrapper>;
friend class EmbeddedWorkerTestHelper;

Powered by Google App Engine
This is Rietveld 408576698