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 <unordered_map> | 7 #include <unordered_map> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/lazy_instance.h" | 12 #include "base/lazy_instance.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/ptr_util.h" | 14 #include "base/memory/ptr_util.h" |
15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
16 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
17 #include "base/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
18 #include "content/browser/gpu/gpu_process_host.h" | 18 #include "content/browser/gpu/gpu_process_host.h" |
19 #include "content/browser/mojo/browser_shell_connection.h" | 19 #include "content/browser/mojo/browser_shell_connection.h" |
20 #include "content/browser/mojo/constants.h" | 20 #include "content/browser/mojo/constants.h" |
21 #include "content/common/gpu_process_launch_causes.h" | 21 #include "content/common/gpu_process_launch_causes.h" |
22 #include "content/common/mojo/mojo_shell_connection_impl.h" | 22 #include "content/common/mojo/mojo_shell_connection_impl.h" |
23 #include "content/common/process_control.mojom.h" | 23 #include "content/common/process_control.mojom.h" |
24 #include "content/grit/content_resources.h" | 24 #include "content/grit/content_resources.h" |
25 #include "content/public/browser/browser_thread.h" | 25 #include "content/public/browser/browser_thread.h" |
26 #include "content/public/browser/content_browser_client.h" | 26 #include "content/public/browser/content_browser_client.h" |
27 #include "content/public/browser/utility_process_host.h" | 27 #include "content/public/browser/utility_process_host.h" |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 shell::Identity source_id(requestor_name, user_id); | 324 shell::Identity source_id(requestor_name, user_id); |
325 params->set_source(source_id); | 325 params->set_source(source_id); |
326 params->set_target(shell::Identity(name, user_id)); | 326 params->set_target(shell::Identity(name, user_id)); |
327 params->set_remote_interfaces(std::move(request)); | 327 params->set_remote_interfaces(std::move(request)); |
328 params->set_local_interfaces(std::move(exposed_services)); | 328 params->set_local_interfaces(std::move(exposed_services)); |
329 params->set_connect_callback(callback); | 329 params->set_connect_callback(callback); |
330 shell_->Connect(std::move(params)); | 330 shell_->Connect(std::move(params)); |
331 } | 331 } |
332 | 332 |
333 } // namespace content | 333 } // namespace content |
OLD | NEW |