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

Unified Diff: chrome/browser/renderer_host/resource_message_filter.h

Issue 258008: Move initialization of ChromeURLRequestContexts to the IO thread. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync again, just in case Created 11 years, 2 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: chrome/browser/renderer_host/resource_message_filter.h
===================================================================
--- chrome/browser/renderer_host/resource_message_filter.h (revision 29872)
+++ chrome/browser/renderer_host/resource_message_filter.h (working copy)
@@ -32,6 +32,7 @@
class AppCacheDispatcherHost;
class AudioRendererHost;
+class ChromeURLRequestContext;
class DatabaseDispatcherHost;
class DOMStorageDispatcherHost;
class ExtensionMessageService;
@@ -39,6 +40,7 @@
class Profile;
class RenderWidgetHelper;
class SpellChecker;
+class URLRequestContextGetter;
struct ViewHostMsg_Audio_CreateStream;
struct WebPluginInfo;
@@ -299,6 +301,10 @@
// thread.
static Clipboard* GetClipboard();
+ // Returns either the extension URLRequestContext or regular URLRequestContext
+ // depending on whether |url| is an extension URL.
+ ChromeURLRequestContext* GetRequestContextForURL(const GURL& url);
+
NotificationRegistrar registrar_;
// The channel associated with the renderer connection. This pointer is not
@@ -326,13 +332,13 @@
ResolveProxyMsgHelper resolve_proxy_msg_helper_;
// Contextual information to be used for requests created here.
- scoped_refptr<URLRequestContext> request_context_;
+ scoped_refptr<URLRequestContextGetter> request_context_;
// A request context specific for media resources.
- scoped_refptr<URLRequestContext> media_request_context_;
+ scoped_refptr<URLRequestContextGetter> media_request_context_;
// A request context that holds a cookie store for chrome-extension URLs.
- scoped_refptr<URLRequestContext> extensions_request_context_;
+ scoped_refptr<URLRequestContextGetter> extensions_request_context_;
// Used for routing extension messages.
scoped_refptr<ExtensionMessageService> extensions_message_service_;
« no previous file with comments | « chrome/browser/renderer_host/resource_dispatcher_host.cc ('k') | chrome/browser/renderer_host/resource_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698