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

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..3dc39c616c63c2a75b1d7b9195a867fba535b6b5 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;
@@ -74,6 +79,13 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
bool is_incognito() const { return is_incognito_; }
+ net::URLRequestContextGetter* request_context_getter() {
+ return request_context_getter_;
+ }
+ ChromeBlobStorageContext* blob_storage_context() {
+ return blob_storage_context_;
+ }
+
private:
friend class base::RefCountedThreadSafe<ServiceWorkerContextWrapper>;
friend class EmbeddedWorkerTestHelper;
@@ -97,6 +109,9 @@ class CONTENT_EXPORT ServiceWorkerContextWrapper
// Initialized in Init(); true of the user data directory is empty.
bool is_incognito_;
+
+ net::URLRequestContextGetter* request_context_getter_;
+ ChromeBlobStorageContext* blob_storage_context_;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698