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 "mojo/shell/child_process_host.h" | 5 #include "mojo/shell/child_process_host.h" |
6 | 6 |
7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/process/kill.h" | 13 #include "base/process/kill.h" |
14 #include "base/process/launch.h" | 14 #include "base/process/launch.h" |
15 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
16 #include "base/task_runner.h" | 16 #include "base/task_runner.h" |
17 #include "base/task_runner_util.h" | 17 #include "base/task_runner_util.h" |
| 18 #include "mojo/embedder/platform_channel_pair.h" |
18 #include "mojo/shell/context.h" | 19 #include "mojo/shell/context.h" |
19 #include "mojo/shell/switches.h" | 20 #include "mojo/shell/switches.h" |
20 #include "mojo/system/embedder/platform_channel_pair.h" | |
21 | 21 |
22 namespace mojo { | 22 namespace mojo { |
23 namespace shell { | 23 namespace shell { |
24 | 24 |
25 ChildProcessHost::ChildProcessHost(Context* context, | 25 ChildProcessHost::ChildProcessHost(Context* context, |
26 Delegate* delegate, | 26 Delegate* delegate, |
27 ChildProcess::Type type) | 27 ChildProcess::Type type) |
28 : context_(context), | 28 : context_(context), |
29 delegate_(delegate), | 29 delegate_(delegate), |
30 type_(type), | 30 type_(type), |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 CHECK(platform_channel_.is_valid()); | 96 CHECK(platform_channel_.is_valid()); |
97 return true; | 97 return true; |
98 } | 98 } |
99 | 99 |
100 void ChildProcessHost::DidLaunch(bool success) { | 100 void ChildProcessHost::DidLaunch(bool success) { |
101 delegate_->DidStart(success); | 101 delegate_->DidStart(success); |
102 } | 102 } |
103 | 103 |
104 } // namespace shell | 104 } // namespace shell |
105 } // namespace mojo | 105 } // namespace mojo |
OLD | NEW |