diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-23 21:03:04 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-23 21:03:04 +0000 |
commit | 6eaddcc1be66c1ffb3980a6b5b1fe0f106be67e9 (patch) | |
tree | 69b4e4ef0c667919461d92cc91e020f3b5122ba2 /chrome/common/child_process_host.h | |
parent | 9f37ca87b7226929d4156a4ad00116f76876404d (diff) | |
download | chromium_src-6eaddcc1be66c1ffb3980a6b5b1fe0f106be67e9.zip chromium_src-6eaddcc1be66c1ffb3980a6b5b1fe0f106be67e9.tar.gz chromium_src-6eaddcc1be66c1ffb3980a6b5b1fe0f106be67e9.tar.bz2 |
Make plugin_process_host.cc and child_process_host.cc compile on Posix.
Review URL: http://codereview.chromium.org/27018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10210 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/child_process_host.h')
-rw-r--r-- | chrome/common/child_process_host.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/chrome/common/child_process_host.h b/chrome/common/child_process_host.h index 01db515..4f173fc 100644 --- a/chrome/common/child_process_host.h +++ b/chrome/common/child_process_host.h @@ -5,10 +5,13 @@ #ifndef CHROME_COMMON_CHILD_PROCESS_HOST_H_ #define CHROME_COMMON_CHILD_PROCESS_HOST_H_ +#include "build/build_config.h" + #include <list> #include "base/basictypes.h" -#include "base/object_watcher.h" +#include "base/scoped_ptr.h" +#include "base/waitable_event_watcher.h" #include "chrome/common/child_process_info.h" #include "chrome/common/ipc_channel.h" @@ -18,7 +21,7 @@ class NotificationType; // Plugins/workers and other child processes that live on the IO thread should // derive from this class. class ChildProcessHost : public ChildProcessInfo, - public base::ObjectWatcher::Delegate, + public base::WaitableEventWatcher::Delegate, public IPC::Channel::Listener, public IPC::Message::Sender { public: @@ -72,8 +75,8 @@ class ChildProcessHost : public ChildProcessInfo, // Sends the given notification to the notification service on the UI thread. void Notify(NotificationType type); - // ObjectWatcher::Delegate implementation: - virtual void OnObjectSignaled(HANDLE object); + // WaitableEventWatcher::Delegate implementation: + virtual void OnWaitableEventSignaled(base::WaitableEvent *event); // By using an internal class as the IPC::Channel::Listener, we can intercept // OnMessageReceived/OnChannelConnected and do our own processing before @@ -102,7 +105,9 @@ class ChildProcessHost : public ChildProcessInfo, std::wstring channel_id_; // Used to watch the child process handle. - base::ObjectWatcher watcher_; + base::WaitableEventWatcher watcher_; + + scoped_ptr<base::WaitableEvent> process_event_; }; #endif // CHROME_COMMON_CHILD_PROCESS_HOST_H_ |