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

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 dependencies. 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
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..efc64c03a843dbd77c70817f21125a419e44262a 100644
--- a/content/browser/worker_host/worker_message_filter.h
+++ b/content/browser/worker_host/worker_message_filter.h
@@ -8,11 +8,15 @@
#include "base/callback.h"
#include "content/browser/browser_message_filter.h"
-class ResourceDispatcherHost;
-
+namespace content {
jam 2011/04/13 16:43:06 nit: i thought we forward declare classes/structs
willchan no longer on Chromium 2011/04/13 18:03:44 I didn't know that, but you're right! Done.
+class ResourceContext;
+} // namespace content
namespace net {
+class URLRequestContext;
class URLRequestContextGetter;
-}
+} // namespace net
+class ResourceDispatcherHost;
+
struct ViewHostMsg_CreateWorker_Params;
@@ -22,7 +26,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 +58,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* resource_context_;
ResourceDispatcherHost* resource_dispatcher_host_;
// This is guaranteed to be valid until OnChannelClosing is closed, and it's

Powered by Google App Engine
This is Rietveld 408576698