OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_PULIC_COMMON_CHILD_PROCESS_HOST_H_ | 5 #ifndef CONTENT_PULIC_COMMON_CHILD_PROCESS_HOST_H_ |
6 #define CONTENT_PULIC_COMMON_CHILD_PROCESS_HOST_H_ | 6 #define CONTENT_PULIC_COMMON_CHILD_PROCESS_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
11 #include "ipc/ipc_channel_proxy.h" | 11 #include "ipc/ipc_channel_proxy.h" |
12 | 12 |
13 class FilePath; | 13 class FilePath; |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 | 16 |
17 class ChildProcessHostDelegate; | 17 class ChildProcessHostDelegate; |
18 | 18 |
19 // Interface that all users of ChildProcessHost need to provide. | 19 // This represents a non-browser process. This can include traditional child |
| 20 // processes like plugins, or an embedder could even use this for long lived |
| 21 // processes that run independent of the browser process. |
20 class CONTENT_EXPORT ChildProcessHost : public IPC::Message::Sender { | 22 class CONTENT_EXPORT ChildProcessHost : public IPC::Message::Sender { |
21 public: | 23 public: |
22 virtual ~ChildProcessHost() {} | 24 virtual ~ChildProcessHost() {} |
23 | 25 |
24 // Used to create a child process host. The delegate must outlive this object. | 26 // Used to create a child process host. The delegate must outlive this object. |
25 static ChildProcessHost* Create( | 27 static ChildProcessHost* Create( |
26 ChildProcessHostDelegate* delegate); | 28 ChildProcessHostDelegate* delegate); |
27 | 29 |
28 // These flags may be passed to GetChildPath in order to alter its behavior, | 30 // These flags may be passed to GetChildPath in order to alter its behavior, |
29 // causing it to return a child path more suited to a specific task. | 31 // causing it to return a child path more suited to a specific task. |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 90 |
89 #if defined(OS_POSIX) | 91 #if defined(OS_POSIX) |
90 // See IPC::Channel::TakeClientFileDescriptor. | 92 // See IPC::Channel::TakeClientFileDescriptor. |
91 virtual int TakeClientFileDescriptor() = 0; | 93 virtual int TakeClientFileDescriptor() = 0; |
92 #endif | 94 #endif |
93 }; | 95 }; |
94 | 96 |
95 }; // namespace content | 97 }; // namespace content |
96 | 98 |
97 #endif // CONTENT_PULIC_COMMON_CHILD_PROCESS_HOST_H_ | 99 #endif // CONTENT_PULIC_COMMON_CHILD_PROCESS_HOST_H_ |
OLD | NEW |