OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/common/service_manager/service_manager_connection_impl.h" | 5 #include "content/common/service_manager/service_manager_connection_impl.h" |
6 | 6 |
7 #include <queue> | 7 #include <queue> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/callback_helpers.h" | 12 #include "base/callback_helpers.h" |
13 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/memory/ptr_util.h" | 15 #include "base/memory/ptr_util.h" |
16 #include "base/message_loop/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
17 #include "base/threading/thread_checker.h" | 17 #include "base/threading/thread_checker.h" |
| 18 #include "base/threading/thread_task_runner_handle.h" |
18 #include "content/common/service_manager/embedded_service_runner.h" | 19 #include "content/common/service_manager/embedded_service_runner.h" |
19 #include "content/public/common/connection_filter.h" | 20 #include "content/public/common/connection_filter.h" |
20 #include "mojo/public/cpp/bindings/binding_set.h" | 21 #include "mojo/public/cpp/bindings/binding_set.h" |
21 #include "mojo/public/cpp/system/message_pipe.h" | 22 #include "mojo/public/cpp/system/message_pipe.h" |
22 #include "services/service_manager/public/cpp/interface_registry.h" | 23 #include "services/service_manager/public/cpp/interface_registry.h" |
23 #include "services/service_manager/public/cpp/service.h" | 24 #include "services/service_manager/public/cpp/service.h" |
24 #include "services/service_manager/public/cpp/service_context.h" | 25 #include "services/service_manager/public/cpp/service_context.h" |
25 #include "services/service_manager/public/interfaces/constants.mojom.h" | 26 #include "services/service_manager/public/interfaces/constants.mojom.h" |
26 #include "services/service_manager/public/interfaces/service_factory.mojom.h" | 27 #include "services/service_manager/public/interfaces/service_factory.mojom.h" |
27 #include "services/service_manager/runner/common/client_util.h" | 28 #include "services/service_manager/runner/common/client_util.h" |
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 | 540 |
540 void ServiceManagerConnectionImpl::GetInterface( | 541 void ServiceManagerConnectionImpl::GetInterface( |
541 service_manager::mojom::InterfaceProvider* provider, | 542 service_manager::mojom::InterfaceProvider* provider, |
542 const std::string& interface_name, | 543 const std::string& interface_name, |
543 mojo::ScopedMessagePipeHandle request_handle) { | 544 mojo::ScopedMessagePipeHandle request_handle) { |
544 provider->GetInterface(interface_name, std::move(request_handle)); | 545 provider->GetInterface(interface_name, std::move(request_handle)); |
545 } | 546 } |
546 | 547 |
547 } // namespace content | 548 } // namespace content |
548 | 549 |
OLD | NEW |