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 #include "services/shell/runner/host/child_process_host.h" | 5 #include "services/shell/runner/host/child_process_host.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/location.h" | 13 #include "base/location.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/message_loop/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
17 #include "base/process/kill.h" | 17 #include "base/process/kill.h" |
18 #include "base/process/launch.h" | 18 #include "base/process/launch.h" |
19 #include "base/synchronization/lock.h" | 19 #include "base/synchronization/lock.h" |
20 #include "base/task_runner.h" | 20 #include "base/task_runner.h" |
21 #include "base/thread_task_runner_handle.h" | 21 #include "base/threading/thread_task_runner_handle.h" |
22 #include "mojo/edk/embedder/embedder.h" | 22 #include "mojo/edk/embedder/embedder.h" |
23 #include "mojo/public/cpp/bindings/interface_ptr_info.h" | 23 #include "mojo/public/cpp/bindings/interface_ptr_info.h" |
24 #include "mojo/public/cpp/system/core.h" | 24 #include "mojo/public/cpp/system/core.h" |
25 #include "services/shell/native_runner_delegate.h" | 25 #include "services/shell/native_runner_delegate.h" |
26 #include "services/shell/runner/common/client_util.h" | 26 #include "services/shell/runner/common/client_util.h" |
27 #include "services/shell/runner/common/switches.h" | 27 #include "services/shell/runner/common/switches.h" |
28 | 28 |
29 #if defined(OS_LINUX) && !defined(OS_ANDROID) | 29 #if defined(OS_LINUX) && !defined(OS_ANDROID) |
30 #include "sandbox/linux/services/namespace_sandbox.h" | 30 #include "sandbox/linux/services/namespace_sandbox.h" |
31 #endif | 31 #endif |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 mojo::edk::ChildProcessLaunched( | 201 mojo::edk::ChildProcessLaunched( |
202 child_process_.Handle(), | 202 child_process_.Handle(), |
203 mojo::edk::ScopedPlatformHandle(mojo::edk::PlatformHandle( | 203 mojo::edk::ScopedPlatformHandle(mojo::edk::PlatformHandle( |
204 mojo_ipc_channel_->PassServerHandle().release().handle))); | 204 mojo_ipc_channel_->PassServerHandle().release().handle))); |
205 } | 205 } |
206 } | 206 } |
207 start_child_process_event_.Signal(); | 207 start_child_process_event_.Signal(); |
208 } | 208 } |
209 | 209 |
210 } // namespace shell | 210 } // namespace shell |
OLD | NEW |