| 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/runner/host/child_process.h" | 5 #include "mojo/shell/runner/host/child_process.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #include "base/thread_task_runner_handle.h" | 26 #include "base/thread_task_runner_handle.h" |
| 27 #include "base/threading/thread.h" | 27 #include "base/threading/thread.h" |
| 28 #include "base/threading/thread_checker.h" | 28 #include "base/threading/thread_checker.h" |
| 29 #include "mojo/edk/embedder/embedder.h" | 29 #include "mojo/edk/embedder/embedder.h" |
| 30 #include "mojo/edk/embedder/platform_channel_pair.h" | 30 #include "mojo/edk/embedder/platform_channel_pair.h" |
| 31 #include "mojo/edk/embedder/process_delegate.h" | 31 #include "mojo/edk/embedder/process_delegate.h" |
| 32 #include "mojo/edk/embedder/scoped_platform_handle.h" | 32 #include "mojo/edk/embedder/scoped_platform_handle.h" |
| 33 #include "mojo/message_pump/message_pump_mojo.h" | 33 #include "mojo/message_pump/message_pump_mojo.h" |
| 34 #include "mojo/public/cpp/bindings/binding.h" | 34 #include "mojo/public/cpp/bindings/binding.h" |
| 35 #include "mojo/public/cpp/system/core.h" | 35 #include "mojo/public/cpp/system/core.h" |
| 36 #include "mojo/shell/runner/child/child_controller.mojom.h" | |
| 37 #include "mojo/shell/runner/common/switches.h" | 36 #include "mojo/shell/runner/common/switches.h" |
| 38 #include "mojo/shell/runner/host/child_process_base.h" | 37 #include "mojo/shell/runner/host/child_process_base.h" |
| 39 #include "mojo/shell/runner/host/native_application_support.h" | 38 #include "mojo/shell/runner/host/native_application_support.h" |
| 40 #include "mojo/shell/runner/init.h" | 39 #include "mojo/shell/runner/init.h" |
| 41 | 40 |
| 42 #if defined(OS_LINUX) && !defined(OS_ANDROID) | 41 #if defined(OS_LINUX) && !defined(OS_ANDROID) |
| 43 #include "base/rand_util.h" | 42 #include "base/rand_util.h" |
| 44 #include "base/sys_info.h" | 43 #include "base/sys_info.h" |
| 45 #include "mojo/shell/runner/host/linux_sandbox.h" | 44 #include "mojo/shell/runner/host/linux_sandbox.h" |
| 46 #endif | 45 #endif |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 sandbox = InitializeSandbox(); | 113 sandbox = InitializeSandbox(); |
| 115 #endif | 114 #endif |
| 116 | 115 |
| 117 ChildProcessMain(base::Bind(&RunNativeLibrary, app_library)); | 116 ChildProcessMain(base::Bind(&RunNativeLibrary, app_library)); |
| 118 | 117 |
| 119 return 0; | 118 return 0; |
| 120 } | 119 } |
| 121 | 120 |
| 122 } // namespace shell | 121 } // namespace shell |
| 123 } // namespace mojo | 122 } // namespace mojo |
| OLD | NEW |