OLD | NEW |
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 #ifndef CHROME_COMMON_CHILD_PROCESS_HOST_H_ | 5 #ifndef CHROME_COMMON_CHILD_PROCESS_HOST_H_ |
6 #define CHROME_COMMON_CHILD_PROCESS_HOST_H_ | 6 #define CHROME_COMMON_CHILD_PROCESS_HOST_H_ |
7 | 7 |
8 #include "build/build_config.h" | |
9 | |
10 #include <list> | 8 #include <list> |
| 9 #include <string> |
11 | 10 |
12 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
13 #include "base/scoped_ptr.h" | 12 #include "base/scoped_ptr.h" |
14 #include "base/waitable_event_watcher.h" | 13 #include "base/waitable_event_watcher.h" |
15 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" | 14 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" |
16 #include "chrome/common/child_process_info.h" | |
17 #include "chrome/common/ipc_channel.h" | 15 #include "chrome/common/ipc_channel.h" |
18 | 16 |
19 class NotificationType; | 17 class NotificationType; |
20 | 18 |
21 // Plugins/workers and other child processes that live on the IO thread should | 19 // Plugins/workers and other child processes that live on the IO thread should |
22 // derive from this class. | 20 // derive from this class. |
23 class ChildProcessHost : public ResourceDispatcherHost::Receiver, | 21 class ChildProcessHost : public ResourceDispatcherHost::Receiver, |
24 public base::WaitableEventWatcher::Delegate, | 22 public base::WaitableEventWatcher::Delegate, |
25 public IPC::Channel::Listener { | 23 public IPC::Channel::Listener { |
26 public: | 24 public: |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 // IPC Channel's id. | 107 // IPC Channel's id. |
110 std::wstring channel_id_; | 108 std::wstring channel_id_; |
111 | 109 |
112 // Used to watch the child process handle. | 110 // Used to watch the child process handle. |
113 base::WaitableEventWatcher watcher_; | 111 base::WaitableEventWatcher watcher_; |
114 | 112 |
115 scoped_ptr<base::WaitableEvent> process_event_; | 113 scoped_ptr<base::WaitableEvent> process_event_; |
116 }; | 114 }; |
117 | 115 |
118 #endif // CHROME_COMMON_CHILD_PROCESS_HOST_H_ | 116 #endif // CHROME_COMMON_CHILD_PROCESS_HOST_H_ |
OLD | NEW |