summaryrefslogtreecommitdiffstats
path: root/chrome/common/child_process_host.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-17 00:52:35 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-17 00:52:35 +0000
commitdabe607133c5b62e6b0134017f35cb87d0d4f3b6 (patch)
treedb5d35947dcfa2810c7e7e19364ecaae37aa0912 /chrome/common/child_process_host.h
parenta91baaa1bab5fe3de395aad464015a098290a46b (diff)
downloadchromium_src-dabe607133c5b62e6b0134017f35cb87d0d4f3b6.zip
chromium_src-dabe607133c5b62e6b0134017f35cb87d0d4f3b6.tar.gz
chromium_src-dabe607133c5b62e6b0134017f35cb87d0d4f3b6.tar.bz2
Hide the details about ResourceDispatcherHost messages from child processes. The usage of RDH is now like RD, the client sends the message to RDH to see if it should handle it. I added methods to the Receiver interface so that RDH can get to the process id/handle/type when starting requests.
Review URL: http://codereview.chromium.org/42202 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11816 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/child_process_host.h')
-rw-r--r--chrome/common/child_process_host.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/chrome/common/child_process_host.h b/chrome/common/child_process_host.h
index 4f173fc..cef940c 100644
--- a/chrome/common/child_process_host.h
+++ b/chrome/common/child_process_host.h
@@ -12,22 +12,21 @@
#include "base/basictypes.h"
#include "base/scoped_ptr.h"
#include "base/waitable_event_watcher.h"
+#include "chrome/browser/renderer_host/resource_dispatcher_host.h"
#include "chrome/common/child_process_info.h"
#include "chrome/common/ipc_channel.h"
-class MessageLoop;
class NotificationType;
// Plugins/workers and other child processes that live on the IO thread should
// derive from this class.
-class ChildProcessHost : public ChildProcessInfo,
+class ChildProcessHost : public ResourceDispatcherHost::Receiver,
public base::WaitableEventWatcher::Delegate,
- public IPC::Channel::Listener,
- public IPC::Message::Sender {
+ public IPC::Channel::Listener {
public:
virtual ~ChildProcessHost();
- // IPC::Message::Sender implementation:
+ // ResourceDispatcherHost::Receiver implementation:
virtual bool Send(IPC::Message* msg);
// The Iterator class allows iteration through either all child processes, or
@@ -51,7 +50,8 @@ class ChildProcessHost : public ChildProcessInfo,
};
protected:
- ChildProcessHost(ProcessType type, MessageLoop* main_message_loop);
+ ChildProcessHost(ProcessType type,
+ ResourceDispatcherHost* resource_dispatcher_host);
// Creates the IPC channel. Returns true iff it succeeded.
bool CreateChannel();
@@ -93,7 +93,7 @@ class ChildProcessHost : public ChildProcessInfo,
ListenerHook listener_;
- MessageLoop* main_message_loop_;
+ ResourceDispatcherHost* resource_dispatcher_host_;
// True while we're waiting the channel to be opened.
bool opening_channel_;