| 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 "shell/child_process_host.h" | 5 #include "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/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/location.h" | 11 #include "base/location.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/process/kill.h" | 14 #include "base/process/kill.h" |
| 15 #include "base/process/launch.h" | 15 #include "base/process/launch.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 "base/thread_task_runner_handle.h" | 18 #include "base/thread_task_runner_handle.h" |
| 19 #include "build/build_config.h" | 19 #include "build/build_config.h" |
| 20 #include "mojo/edk/base_edk/platform_task_runner_impl.h" | 20 #include "mojo/edk/base_edk/platform_task_runner_impl.h" |
| 21 #include "mojo/edk/embedder/embedder.h" | 21 #include "mojo/edk/embedder/multiprocess_embedder.h" |
| 22 #include "mojo/edk/embedder/platform_channel_pair.h" | 22 #include "mojo/edk/embedder/platform_channel_pair.h" |
| 23 #include "mojo/edk/util/ref_ptr.h" | 23 #include "mojo/edk/util/ref_ptr.h" |
| 24 #include "mojo/public/cpp/system/message_pipe.h" | 24 #include "mojo/public/cpp/system/message_pipe.h" |
| 25 #include "shell/application_manager/native_application_options.h" | 25 #include "shell/application_manager/native_application_options.h" |
| 26 #include "shell/child_switches.h" | 26 #include "shell/child_switches.h" |
| 27 #include "shell/context.h" | 27 #include "shell/context.h" |
| 28 #include "shell/task_runners.h" | 28 #include "shell/task_runners.h" |
| 29 | 29 |
| 30 using mojo::util::MakeRefCounted; | 30 using mojo::util::MakeRefCounted; |
| 31 | 31 |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 on_app_complete_.reset(); | 170 on_app_complete_.reset(); |
| 171 on_app_complete.Run(result); | 171 on_app_complete.Run(result); |
| 172 } | 172 } |
| 173 } | 173 } |
| 174 | 174 |
| 175 void ChildProcessHost::OnConnectionError() { | 175 void ChildProcessHost::OnConnectionError() { |
| 176 AppCompleted(MOJO_RESULT_UNKNOWN); | 176 AppCompleted(MOJO_RESULT_UNKNOWN); |
| 177 } | 177 } |
| 178 | 178 |
| 179 } // namespace shell | 179 } // namespace shell |
| OLD | NEW |