OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_HELPER_H_ | 5 #ifndef CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_HELPER_H_ |
6 #define CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_HELPER_H_ | 6 #define CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_HELPER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 #if defined(OS_WIN) | 25 #if defined(OS_WIN) |
26 #include "sandbox/win/src/sandbox_types.h" | 26 #include "sandbox/win/src/sandbox_types.h" |
27 #else | 27 #else |
28 #include "content/public/browser/file_descriptor_info.h" | 28 #include "content/public/browser/file_descriptor_info.h" |
29 #endif | 29 #endif |
30 | 30 |
31 #if defined(OS_LINUX) | 31 #if defined(OS_LINUX) |
32 #include "content/public/common/zygote_handle.h" | 32 #include "content/public/common/zygote_handle.h" |
33 #endif | 33 #endif |
34 | 34 |
| 35 #if defined(OS_MACOSX) |
| 36 #include "sandbox/mac/seatbelt_exec.h" |
| 37 #endif |
| 38 |
35 namespace base { | 39 namespace base { |
36 class CommandLine; | 40 class CommandLine; |
37 } | 41 } |
38 | 42 |
39 namespace content { | 43 namespace content { |
40 | 44 |
41 class ChildProcessLauncher; | 45 class ChildProcessLauncher; |
42 class FileDescriptorInfo; | 46 class FileDescriptorInfo; |
43 class SandboxedProcessLauncherDelegate; | 47 class SandboxedProcessLauncherDelegate; |
44 | 48 |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 const int child_process_id_; | 195 const int child_process_id_; |
192 const BrowserThread::ID client_thread_id_; | 196 const BrowserThread::ID client_thread_id_; |
193 base::TimeTicks begin_launch_time_; | 197 base::TimeTicks begin_launch_time_; |
194 std::unique_ptr<base::CommandLine> command_line_; | 198 std::unique_ptr<base::CommandLine> command_line_; |
195 std::unique_ptr<SandboxedProcessLauncherDelegate> delegate_; | 199 std::unique_ptr<SandboxedProcessLauncherDelegate> delegate_; |
196 base::WeakPtr<ChildProcessLauncher> child_process_launcher_; | 200 base::WeakPtr<ChildProcessLauncher> child_process_launcher_; |
197 mojo::edk::ScopedPlatformHandle mojo_client_handle_; | 201 mojo::edk::ScopedPlatformHandle mojo_client_handle_; |
198 mojo::edk::ScopedPlatformHandle mojo_server_handle_; | 202 mojo::edk::ScopedPlatformHandle mojo_server_handle_; |
199 bool terminate_on_shutdown_; | 203 bool terminate_on_shutdown_; |
200 | 204 |
| 205 #if defined(OS_MACOSX) |
| 206 std::unique_ptr<sandbox::SeatbeltExecClient> seatbelt_exec_client_; |
| 207 #endif // defined(OS_MACOSX) |
| 208 |
201 #if defined(OS_ANDROID) | 209 #if defined(OS_ANDROID) |
202 base::android::ScopedJavaGlobalRef<jobject> java_peer_; | 210 base::android::ScopedJavaGlobalRef<jobject> java_peer_; |
203 #endif | 211 #endif |
204 }; | 212 }; |
205 | 213 |
206 } // namespace internal | 214 } // namespace internal |
207 | 215 |
208 } // namespace content | 216 } // namespace content |
209 | 217 |
210 #endif // CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_HELPER_H_ | 218 #endif // CONTENT_BROWSER_CHILD_PROCESS_LAUNCHER_HELPER_H_ |
OLD | NEW |