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; |