OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_CHILD_PROCESS_LAUNCHER_H_ | 5 #ifndef CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_H_ |
6 #define CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_H_ | 6 #define CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_H_ |
7 | 7 |
8 #include "base/files/scoped_file.h" | 8 #include "base/files/scoped_file.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
11 #include "base/process/kill.h" | 11 #include "base/process/kill.h" |
12 #include "base/process/launch.h" | 12 #include "base/process/launch.h" |
13 #include "base/process/process.h" | 13 #include "base/process/process.h" |
14 #include "base/threading/non_thread_safe.h" | 14 #include "base/threading/non_thread_safe.h" |
15 #include "build/build_config.h" | 15 #include "build/build_config.h" |
16 #include "content/common/content_export.h" | 16 #include "content/common/content_export.h" |
17 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
18 #include "content/public/common/sandboxed_process_launcher_delegate.h" | 18 #include "content/public/common/sandboxed_process_launcher_delegate.h" |
19 #include "mojo/edk/embedder/platform_channel_pair.h" | 19 #include "mojo/edk/embedder/scoped_platform_handle.h" |
20 | 20 |
21 #if defined(OS_WIN) | 21 #if defined(OS_WIN) |
22 #include "sandbox/win/src/sandbox_types.h" | 22 #include "sandbox/win/src/sandbox_types.h" |
23 #endif | 23 #endif |
24 | 24 |
25 namespace base { | 25 namespace base { |
26 class CommandLine; | 26 class CommandLine; |
27 } | 27 } |
28 | 28 |
29 namespace content { | 29 namespace content { |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 BrowserThread::ID client_thread_id_; | 148 BrowserThread::ID client_thread_id_; |
149 base::Process process_; | 149 base::Process process_; |
150 base::TerminationStatus termination_status_; | 150 base::TerminationStatus termination_status_; |
151 int exit_code_; | 151 int exit_code_; |
152 ZygoteHandle zygote_; | 152 ZygoteHandle zygote_; |
153 bool starting_; | 153 bool starting_; |
154 // Controls whether the child process should be terminated on browser | 154 // Controls whether the child process should be terminated on browser |
155 // shutdown. Default behavior is to terminate the child. | 155 // shutdown. Default behavior is to terminate the child. |
156 const bool terminate_child_on_shutdown_; | 156 const bool terminate_child_on_shutdown_; |
157 | 157 |
158 // Platform channel used to establish Mojo IPC. | 158 // Host side platform handle to establish Mojo IPC. |
159 mojo::edk::PlatformChannelPair mojo_platform_channel_; | 159 mojo::edk::ScopedPlatformHandle mojo_host_platform_handle_; |
160 | 160 |
161 base::WeakPtrFactory<ChildProcessLauncher> weak_factory_; | 161 base::WeakPtrFactory<ChildProcessLauncher> weak_factory_; |
162 | 162 |
163 DISALLOW_COPY_AND_ASSIGN(ChildProcessLauncher); | 163 DISALLOW_COPY_AND_ASSIGN(ChildProcessLauncher); |
164 }; | 164 }; |
165 | 165 |
166 } // namespace content | 166 } // namespace content |
167 | 167 |
168 #endif // CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_H_ | 168 #endif // CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_H_ |
OLD | NEW |