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 <unistd.h> | 5 #include <unistd.h> |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/at_exit.h" | 9 #include "base/at_exit.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/callback_helpers.h" | 11 #include "base/callback_helpers.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
14 #include "base/location.h" | 14 #include "base/location.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/macros.h" | 16 #include "base/macros.h" |
17 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
18 #include "base/memory/scoped_ptr.h" | 18 #include "base/memory/scoped_ptr.h" |
19 #include "base/message_loop/message_loop.h" | 19 #include "base/message_loop/message_loop.h" |
20 #include "base/posix/global_descriptors.h" | 20 #include "base/posix/global_descriptors.h" |
21 #include "base/single_thread_task_runner.h" | 21 #include "base/single_thread_task_runner.h" |
22 #include "base/synchronization/waitable_event.h" | 22 #include "base/synchronization/waitable_event.h" |
23 #include "base/thread_task_runner_handle.h" | 23 #include "base/thread_task_runner_handle.h" |
24 #include "base/threading/thread.h" | 24 #include "base/threading/thread.h" |
25 #include "base/threading/thread_checker.h" | 25 #include "base/threading/thread_checker.h" |
26 #include "mojo/edk/base_edk/platform_handle_watcher_impl.h" | 26 #include "mojo/edk/base_edk/platform_handle_watcher_impl.h" |
27 #include "mojo/edk/base_edk/platform_task_runner_impl.h" | 27 #include "mojo/edk/base_edk/platform_task_runner_impl.h" |
28 #include "mojo/edk/embedder/embedder.h" | 28 #include "mojo/edk/embedder/embedder.h" |
29 #include "mojo/edk/embedder/multiprocess_embedder.h" | 29 #include "mojo/edk/embedder/multiprocess_embedder.h" |
30 #include "mojo/edk/embedder/platform_channel_pair.h" | |
31 #include "mojo/edk/embedder/simple_platform_support.h" | 30 #include "mojo/edk/embedder/simple_platform_support.h" |
32 #include "mojo/edk/embedder/slave_process_delegate.h" | 31 #include "mojo/edk/embedder/slave_process_delegate.h" |
33 #include "mojo/edk/platform/platform_handle.h" | 32 #include "mojo/edk/platform/platform_handle.h" |
34 #include "mojo/edk/platform/platform_handle_watcher.h" | 33 #include "mojo/edk/platform/platform_handle_watcher.h" |
| 34 #include "mojo/edk/platform/platform_pipe.h" |
35 #include "mojo/edk/platform/scoped_platform_handle.h" | 35 #include "mojo/edk/platform/scoped_platform_handle.h" |
36 #include "mojo/edk/platform/task_runner.h" | 36 #include "mojo/edk/platform/task_runner.h" |
37 #include "mojo/edk/util/make_unique.h" | 37 #include "mojo/edk/util/make_unique.h" |
38 #include "mojo/edk/util/ref_ptr.h" | 38 #include "mojo/edk/util/ref_ptr.h" |
39 #include "mojo/message_pump/message_pump_mojo.h" | 39 #include "mojo/message_pump/message_pump_mojo.h" |
40 #include "mojo/public/cpp/bindings/binding.h" | 40 #include "mojo/public/cpp/bindings/binding.h" |
41 #include "mojo/public/cpp/system/core.h" | 41 #include "mojo/public/cpp/system/core.h" |
42 #include "shell/child_controller.mojom.h" | 42 #include "shell/child_controller.mojom.h" |
43 #include "shell/child_switches.h" | 43 #include "shell/child_switches.h" |
44 #include "shell/init.h" | 44 #include "shell/init.h" |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 shell::ChildControllerImpl::Init(&app_context, child_connection_id, | 331 shell::ChildControllerImpl::Init(&app_context, child_connection_id, |
332 unblocker); | 332 unblocker); |
333 }); | 333 }); |
334 // This will block, then run whatever the controller wants. | 334 // This will block, then run whatever the controller wants. |
335 blocker.Block(); | 335 blocker.Block(); |
336 | 336 |
337 app_context.Shutdown(); | 337 app_context.Shutdown(); |
338 | 338 |
339 return 0; | 339 return 0; |
340 } | 340 } |
OLD | NEW |