| 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/runner/child_process.h" | 5 #include "mojo/runner/child_process.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/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/location.h" | 12 #include "base/location.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/message_loop/message_loop.h" | 17 #include "base/message_loop/message_loop.h" |
| 18 #include "base/single_thread_task_runner.h" | 18 #include "base/single_thread_task_runner.h" |
| 19 #include "base/synchronization/waitable_event.h" | 19 #include "base/synchronization/waitable_event.h" |
| 20 #include "base/thread_task_runner_handle.h" | 20 #include "base/thread_task_runner_handle.h" |
| 21 #include "base/threading/thread.h" | 21 #include "base/threading/thread.h" |
| 22 #include "base/threading/thread_checker.h" | 22 #include "base/threading/thread_checker.h" |
| 23 #include "mojo/edk/embedder/embedder.h" | 23 #include "mojo/edk/embedder/embedder.h" |
| 24 #include "mojo/edk/embedder/platform_channel_pair.h" | 24 #include "mojo/edk/embedder/platform_channel_pair.h" |
| 25 #include "mojo/edk/embedder/process_delegate.h" | 25 #include "mojo/edk/embedder/process_delegate.h" |
| 26 #include "mojo/edk/embedder/scoped_platform_handle.h" | 26 #include "mojo/edk/embedder/scoped_platform_handle.h" |
| 27 #include "mojo/edk/embedder/simple_platform_support.h" | 27 #include "mojo/edk/embedder/simple_platform_support.h" |
| 28 #include "mojo/message_pump/message_pump_mojo.h" | 28 #include "mojo/message_pump/message_pump_mojo.h" |
| 29 #include "mojo/public/cpp/bindings/binding.h" |
| 29 #include "mojo/public/cpp/system/core.h" | 30 #include "mojo/public/cpp/system/core.h" |
| 30 #include "mojo/runner/child_process.mojom.h" | 31 #include "mojo/runner/child_process.mojom.h" |
| 31 #include "mojo/runner/native_application_support.h" | 32 #include "mojo/runner/native_application_support.h" |
| 32 #include "mojo/runner/switches.h" | 33 #include "mojo/runner/switches.h" |
| 33 | 34 |
| 34 #if defined(OS_LINUX) && !defined(OS_ANDROID) | 35 #if defined(OS_LINUX) && !defined(OS_ANDROID) |
| 35 #include "base/rand_util.h" | 36 #include "base/rand_util.h" |
| 36 #include "base/sys_info.h" | 37 #include "base/sys_info.h" |
| 37 #include "mojo/runner/linux_sandbox.h" | 38 #include "mojo/runner/linux_sandbox.h" |
| 38 #endif | 39 #endif |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 // This will block, then run whatever the controller wants. | 346 // This will block, then run whatever the controller wants. |
| 346 blocker.Block(); | 347 blocker.Block(); |
| 347 | 348 |
| 348 app_context.Shutdown(); | 349 app_context.Shutdown(); |
| 349 | 350 |
| 350 return 0; | 351 return 0; |
| 351 } | 352 } |
| 352 | 353 |
| 353 } // namespace runner | 354 } // namespace runner |
| 354 } // namespace mojo | 355 } // namespace mojo |
| OLD | NEW |