OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 MOJO_SHELL_CHILD_PROCESS_HOST_H_ | 5 #ifndef MOJO_SHELL_CHILD_PROCESS_HOST_H_ |
6 #define MOJO_SHELL_CHILD_PROCESS_HOST_H_ | 6 #define MOJO_SHELL_CHILD_PROCESS_HOST_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/process/process_handle.h" | 9 #include "base/process/process_handle.h" |
| 10 #include "mojo/embedder/scoped_platform_handle.h" |
10 #include "mojo/shell/child_process.h" // For |ChildProcess::Type|. | 11 #include "mojo/shell/child_process.h" // For |ChildProcess::Type|. |
11 #include "mojo/system/embedder/scoped_platform_handle.h" | |
12 | 12 |
13 namespace mojo { | 13 namespace mojo { |
14 namespace shell { | 14 namespace shell { |
15 | 15 |
16 class Context; | 16 class Context; |
17 | 17 |
18 // (Base) class for a "child process host". Handles launching and connecting a | 18 // (Base) class for a "child process host". Handles launching and connecting a |
19 // platform-specific "pipe" to the child, and supports joining the child | 19 // platform-specific "pipe" to the child, and supports joining the child |
20 // process. Intended for use as a base class, but may be used on its own in | 20 // process. Intended for use as a base class, but may be used on its own in |
21 // simple cases. | 21 // simple cases. |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 // Platform-specific "pipe" to the child process. Valid after |Start()|. | 70 // Platform-specific "pipe" to the child process. Valid after |Start()|. |
71 embedder::ScopedPlatformHandle platform_channel_; | 71 embedder::ScopedPlatformHandle platform_channel_; |
72 | 72 |
73 DISALLOW_COPY_AND_ASSIGN(ChildProcessHost); | 73 DISALLOW_COPY_AND_ASSIGN(ChildProcessHost); |
74 }; | 74 }; |
75 | 75 |
76 } // namespace shell | 76 } // namespace shell |
77 } // namespace mojo | 77 } // namespace mojo |
78 | 78 |
79 #endif // MOJO_SHELL_CHILD_PROCESS_HOST_H_ | 79 #endif // MOJO_SHELL_CHILD_PROCESS_HOST_H_ |
OLD | NEW |