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 <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/scoped_ptr.h" | 12 #include "base/scoped_ptr.h" |
13 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" | 13 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" |
14 #include "chrome/common/ipc_channel.h" | 14 #include "ipc/ipc_channel.h" |
15 | 15 |
16 class NotificationType; | 16 class NotificationType; |
17 | 17 |
18 // Plugins/workers and other child processes that live on the IO thread should | 18 // Plugins/workers and other child processes that live on the IO thread should |
19 // derive from this class. | 19 // derive from this class. |
20 class ChildProcessHost : public ResourceDispatcherHost::Receiver, | 20 class ChildProcessHost : public ResourceDispatcherHost::Receiver, |
21 public IPC::Channel::Listener { | 21 public IPC::Channel::Listener { |
22 public: | 22 public: |
23 virtual ~ChildProcessHost(); | 23 virtual ~ChildProcessHost(); |
24 | 24 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 bool opening_channel_; | 100 bool opening_channel_; |
101 | 101 |
102 // The IPC::Channel. | 102 // The IPC::Channel. |
103 scoped_ptr<IPC::Channel> channel_; | 103 scoped_ptr<IPC::Channel> channel_; |
104 | 104 |
105 // IPC Channel's id. | 105 // IPC Channel's id. |
106 std::string channel_id_; | 106 std::string channel_id_; |
107 }; | 107 }; |
108 | 108 |
109 #endif // CHROME_COMMON_CHILD_PROCESS_HOST_H_ | 109 #endif // CHROME_COMMON_CHILD_PROCESS_HOST_H_ |
OLD | NEW |