| 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 "content/common/service_manager/embedded_service_runner.h" | 18 #include "content/common/service_manager/embedded_service_runner.h" |
| 19 #include "content/public/common/connection_filter.h" | 19 #include "content/public/common/connection_filter.h" |
| 20 #include "mojo/public/cpp/bindings/binding_set.h" | 20 #include "mojo/public/cpp/bindings/binding_set.h" |
| 21 #include "mojo/public/cpp/system/message_pipe.h" | 21 #include "mojo/public/cpp/system/message_pipe.h" |
| 22 #include "services/shell/public/cpp/service.h" | 22 #include "services/service_manager/public/cpp/service.h" |
| 23 #include "services/shell/public/cpp/service_context.h" | 23 #include "services/service_manager/public/cpp/service_context.h" |
| 24 #include "services/shell/public/interfaces/service_factory.mojom.h" | 24 #include "services/service_manager/public/interfaces/service_factory.mojom.h" |
| 25 #include "services/shell/runner/common/client_util.h" | 25 #include "services/service_manager/runner/common/client_util.h" |
| 26 | 26 |
| 27 namespace content { | 27 namespace content { |
| 28 namespace { | 28 namespace { |
| 29 | 29 |
| 30 base::LazyInstance<std::unique_ptr<ServiceManagerConnection>>::Leaky | 30 base::LazyInstance<std::unique_ptr<ServiceManagerConnection>>::Leaky |
| 31 g_connection_for_process = LAZY_INSTANCE_INITIALIZER; | 31 g_connection_for_process = LAZY_INSTANCE_INITIALIZER; |
| 32 | 32 |
| 33 ServiceManagerConnection::Factory* service_manager_connection_factory = nullptr; | 33 ServiceManagerConnection::Factory* service_manager_connection_factory = nullptr; |
| 34 | 34 |
| 35 } // namespace | 35 } // namespace |
| (...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 | 495 |
| 496 void ServiceManagerConnectionImpl::GetInterface( | 496 void ServiceManagerConnectionImpl::GetInterface( |
| 497 shell::mojom::InterfaceProvider* provider, | 497 shell::mojom::InterfaceProvider* provider, |
| 498 const std::string& interface_name, | 498 const std::string& interface_name, |
| 499 mojo::ScopedMessagePipeHandle request_handle) { | 499 mojo::ScopedMessagePipeHandle request_handle) { |
| 500 provider->GetInterface(interface_name, std::move(request_handle)); | 500 provider->GetInterface(interface_name, std::move(request_handle)); |
| 501 } | 501 } |
| 502 | 502 |
| 503 } // namespace content | 503 } // namespace content |
| 504 | 504 |
| OLD | NEW |