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

Unified Diff: content/browser/worker_host/worker_message_filter.h

Issue 6825038: Create a content::ResourceContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test. Created 9 years, 8 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
« no previous file with comments | « content/browser/resource_context.cc ('k') | content/browser/worker_host/worker_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/worker_host/worker_message_filter.h
diff --git a/content/browser/worker_host/worker_message_filter.h b/content/browser/worker_host/worker_message_filter.h
index 3ffb2bb00a0923c69af460aa2921787dd6a8b86c..19be38504ce95719f63156945dba6051145fa12b 100644
--- a/content/browser/worker_host/worker_message_filter.h
+++ b/content/browser/worker_host/worker_message_filter.h
@@ -9,10 +9,13 @@
#include "content/browser/browser_message_filter.h"
class ResourceDispatcherHost;
-
+namespace content {
+class ResourceContext;
+} // namespace content
namespace net {
class URLRequestContextGetter;
-}
+} // namespace net
+
struct ViewHostMsg_CreateWorker_Params;
@@ -22,7 +25,8 @@ class WorkerMessageFilter : public BrowserMessageFilter {
// OnChannelClosing.
WorkerMessageFilter(
int render_process_id,
- net::URLRequestContextGetter* request_context,
+ net::URLRequestContextGetter* request_context_getter,
+ const content::ResourceContext* resource_context,
ResourceDispatcherHost* resource_dispatcher_host,
CallbackWithReturnValue<int>::Type* next_routing_id);
@@ -53,7 +57,8 @@ class WorkerMessageFilter : public BrowserMessageFilter {
void OnCreateMessagePort(int* route_id, int* message_port_id);
int render_process_id_;
- scoped_refptr<net::URLRequestContextGetter> request_context_;
+ scoped_refptr<net::URLRequestContextGetter> request_context_getter_;
+ const content::ResourceContext* const resource_context_;
ResourceDispatcherHost* resource_dispatcher_host_;
// This is guaranteed to be valid until OnChannelClosing is closed, and it's
« no previous file with comments | « content/browser/resource_context.cc ('k') | content/browser/worker_host/worker_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698