| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "content/browser/mojo/mojo_shell_context.h" | 5 #include "content/browser/mojo/mojo_shell_context.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/path_service.h" | 13 #include "base/path_service.h" |
| 14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
| 15 #include "base/thread_task_runner_handle.h" | 15 #include "base/thread_task_runner_handle.h" |
| 16 #include "components/profile_service/profile_app.h" | 16 #include "components/profile_service/profile_app.h" |
| 17 #include "content/browser/gpu/gpu_process_host.h" | 17 #include "content/browser/gpu/gpu_process_host.h" |
| 18 #include "content/common/gpu/gpu_process_launch_causes.h" | 18 #include "content/common/gpu_process_launch_causes.h" |
| 19 #include "content/common/mojo/current_thread_loader.h" | 19 #include "content/common/mojo/current_thread_loader.h" |
| 20 #include "content/common/mojo/mojo_shell_connection_impl.h" | 20 #include "content/common/mojo/mojo_shell_connection_impl.h" |
| 21 #include "content/common/mojo/static_loader.h" | 21 #include "content/common/mojo/static_loader.h" |
| 22 #include "content/common/process_control.mojom.h" | 22 #include "content/common/process_control.mojom.h" |
| 23 #include "content/public/browser/browser_thread.h" | 23 #include "content/public/browser/browser_thread.h" |
| 24 #include "content/public/browser/content_browser_client.h" | 24 #include "content/public/browser/content_browser_client.h" |
| 25 #include "content/public/browser/utility_process_host.h" | 25 #include "content/public/browser/utility_process_host.h" |
| 26 #include "content/public/browser/utility_process_host_client.h" | 26 #include "content/public/browser/utility_process_host_client.h" |
| 27 #include "content/public/common/content_client.h" | 27 #include "content/public/common/content_client.h" |
| 28 #include "content/public/common/content_switches.h" | 28 #include "content/public/common/content_switches.h" |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 mojo::Identity source_id(requestor_name, user_id); | 308 mojo::Identity source_id(requestor_name, user_id); |
| 309 params->set_source(source_id); | 309 params->set_source(source_id); |
| 310 params->set_target(mojo::Identity(name, user_id)); | 310 params->set_target(mojo::Identity(name, user_id)); |
| 311 params->set_remote_interfaces(std::move(request)); | 311 params->set_remote_interfaces(std::move(request)); |
| 312 params->set_local_interfaces(std::move(exposed_services)); | 312 params->set_local_interfaces(std::move(exposed_services)); |
| 313 params->set_connect_callback(callback); | 313 params->set_connect_callback(callback); |
| 314 shell_->Connect(std::move(params)); | 314 shell_->Connect(std::move(params)); |
| 315 } | 315 } |
| 316 | 316 |
| 317 } // namespace content | 317 } // namespace content |
| OLD | NEW |