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

Side by Side Diff: chrome/browser/renderer_host/resource_dispatcher_host.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, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This is the browser side of the resource dispatcher, it receives requests 5 // This is the browser side of the resource dispatcher, it receives requests
6 // from the child process (i.e. [Renderer, Plugin, Worker]ProcessHost), and 6 // from the child process (i.e. [Renderer, Plugin, Worker]ProcessHost), and
7 // dispatches them to URLRequests. It then fowards the messages from the 7 // dispatches them to URLRequests. It then fowards the messages from the
8 // URLRequests back to the correct process for handling. 8 // URLRequests back to the correct process for handling.
9 // 9 //
10 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading 10 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // NOTE: This class unfortunately cannot be named 'Delegate' because that 54 // NOTE: This class unfortunately cannot be named 'Delegate' because that
55 // conflicts with the name of ResourceDispatcherHost's base class. 55 // conflicts with the name of ResourceDispatcherHost's base class.
56 // 56 //
57 // If the receiver is unable to send a given message (i.e., if Send returns 57 // If the receiver is unable to send a given message (i.e., if Send returns
58 // false), then the ResourceDispatcherHost assumes the receiver has failed, 58 // false), then the ResourceDispatcherHost assumes the receiver has failed,
59 // and the given request will be dropped. (This happens, for example, when a 59 // and the given request will be dropped. (This happens, for example, when a
60 // renderer crashes and the channel dies). 60 // renderer crashes and the channel dies).
61 class Receiver : public IPC::Message::Sender, 61 class Receiver : public IPC::Message::Sender,
62 public ChildProcessInfo { 62 public ChildProcessInfo {
63 public: 63 public:
64 // Return the URLRequestContext for the given request. 64 // Returns the URLRequestContext for the given request.
65 // If NULL is returned, the default context for the profile is used. 65 // If NULL is returned, the default context for the profile is used.
66 virtual URLRequestContext* GetRequestContext( 66 virtual URLRequestContext* GetRequestContext(
67 uint32 request_id, 67 uint32 request_id,
68 const ViewHostMsg_Resource_Request& request_data) = 0; 68 const ViewHostMsg_Resource_Request& request_data) = 0;
69 69
70 protected: 70 protected:
71 explicit Receiver(ChildProcessInfo::ProcessType type, int child_id) 71 explicit Receiver(ChildProcessInfo::ProcessType type, int child_id)
72 : ChildProcessInfo(type, child_id) {} 72 : ChildProcessInfo(type, child_id) {}
73 virtual ~Receiver() {} 73 virtual ~Receiver() {}
74 }; 74 };
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 480
481 // Keeps track of elements blocked by the Privacy Blacklist. 481 // Keeps track of elements blocked by the Privacy Blacklist.
482 chrome::BlockedResponse blocked_; 482 chrome::BlockedResponse blocked_;
483 483
484 static bool g_is_http_prioritization_enabled; 484 static bool g_is_http_prioritization_enabled;
485 485
486 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); 486 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost);
487 }; 487 };
488 488
489 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ 489 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/profile_manager.cc ('k') | chrome/browser/renderer_host/resource_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698