| 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/single_thread_task_runner.h" | 20 #include "base/single_thread_task_runner.h" |
| 21 #include "base/synchronization/waitable_event.h" | 21 #include "base/synchronization/waitable_event.h" |
| 22 #include "base/thread_task_runner_handle.h" | 22 #include "base/thread_task_runner_handle.h" |
| 23 #include "base/threading/thread.h" | 23 #include "base/threading/thread.h" |
| 24 #include "base/threading/thread_checker.h" | 24 #include "base/threading/thread_checker.h" |
| 25 #include "mojo/edk/base_edk/platform_handle_watcher_impl.h" | 25 #include "mojo/edk/base_edk/platform_handle_watcher_impl.h" |
| 26 #include "mojo/edk/base_edk/platform_task_runner_impl.h" | 26 #include "mojo/edk/base_edk/platform_task_runner_impl.h" |
| 27 #include "mojo/edk/embedder/embedder.h" | 27 #include "mojo/edk/embedder/embedder.h" |
| 28 #include "mojo/edk/embedder/multiprocess_embedder.h" |
| 28 #include "mojo/edk/embedder/platform_channel_pair.h" | 29 #include "mojo/edk/embedder/platform_channel_pair.h" |
| 29 #include "mojo/edk/embedder/simple_platform_support.h" | 30 #include "mojo/edk/embedder/simple_platform_support.h" |
| 30 #include "mojo/edk/embedder/slave_process_delegate.h" | 31 #include "mojo/edk/embedder/slave_process_delegate.h" |
| 31 #include "mojo/edk/platform/platform_handle_watcher.h" | 32 #include "mojo/edk/platform/platform_handle_watcher.h" |
| 32 #include "mojo/edk/platform/scoped_platform_handle.h" | 33 #include "mojo/edk/platform/scoped_platform_handle.h" |
| 33 #include "mojo/edk/platform/task_runner.h" | 34 #include "mojo/edk/platform/task_runner.h" |
| 34 #include "mojo/edk/util/make_unique.h" | 35 #include "mojo/edk/util/make_unique.h" |
| 35 #include "mojo/edk/util/ref_ptr.h" | 36 #include "mojo/edk/util/ref_ptr.h" |
| 36 #include "mojo/message_pump/message_pump_mojo.h" | 37 #include "mojo/message_pump/message_pump_mojo.h" |
| 37 #include "mojo/public/cpp/bindings/binding.h" | 38 #include "mojo/public/cpp/bindings/binding.h" |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 shell::ChildControllerImpl::Init(&app_context, child_connection_id, | 333 shell::ChildControllerImpl::Init(&app_context, child_connection_id, |
| 333 unblocker); | 334 unblocker); |
| 334 }); | 335 }); |
| 335 // This will block, then run whatever the controller wants. | 336 // This will block, then run whatever the controller wants. |
| 336 blocker.Block(); | 337 blocker.Block(); |
| 337 | 338 |
| 338 app_context.Shutdown(); | 339 app_context.Shutdown(); |
| 339 | 340 |
| 340 return 0; | 341 return 0; |
| 341 } | 342 } |
| OLD | NEW |