| 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 #ifndef SERVICES_SERVICE_MANAGER_PUBLIC_CPP_BINDER_REGISTRY_H_ | 5 #ifndef SERVICES_SERVICE_MANAGER_PUBLIC_CPP_BINDER_REGISTRY_H_ |
| 6 #define SERVICES_SERVICE_MANAGER_PUBLIC_CPP_BINDER_REGISTRY_H_ | 6 #define SERVICES_SERVICE_MANAGER_PUBLIC_CPP_BINDER_REGISTRY_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
| 14 #include "mojo/public/cpp/system/message_pipe.h" | 14 #include "mojo/public/cpp/system/message_pipe.h" |
| 15 #include "services/service_manager/public/cpp/interface_factory.h" | 15 #include "services/service_manager/public/cpp/interface_factory.h" |
| 16 #include "services/service_manager/public/cpp/lib/callback_binder.h" | 16 #include "services/service_manager/public/cpp/lib/callback_binder.h" |
| 17 #include "services/service_manager/public/cpp/lib/interface_factory_binder.h" | 17 #include "services/service_manager/public/cpp/lib/interface_factory_binder.h" |
| 18 | 18 |
| 19 namespace base { |
| 20 class SingleThreadTaskRunner; |
| 21 } |
| 22 |
| 19 namespace service_manager { | 23 namespace service_manager { |
| 20 | 24 |
| 21 class Identity; | 25 class Identity; |
| 22 class InterfaceBinder; | 26 class InterfaceBinder; |
| 23 | 27 |
| 24 class BinderRegistry { | 28 class BinderRegistry { |
| 25 public: | 29 public: |
| 26 using Binder = base::Callback<void(const std::string&, | 30 using Binder = base::Callback<void(const std::string&, |
| 27 mojo::ScopedMessagePipeHandle)>; | 31 mojo::ScopedMessagePipeHandle)>; |
| 28 | 32 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 | 86 |
| 83 InterfaceNameToBinderMap binders_; | 87 InterfaceNameToBinderMap binders_; |
| 84 | 88 |
| 85 DISALLOW_COPY_AND_ASSIGN(BinderRegistry); | 89 DISALLOW_COPY_AND_ASSIGN(BinderRegistry); |
| 86 }; | 90 }; |
| 87 | 91 |
| 88 | 92 |
| 89 } // namespace service_manager | 93 } // namespace service_manager |
| 90 | 94 |
| 91 #endif // SERVICES_SERVICE_MANAGER_PUBLIC_CPP_BINDER_REGISTRY_H_ | 95 #endif // SERVICES_SERVICE_MANAGER_PUBLIC_CPP_BINDER_REGISTRY_H_ |
| OLD | NEW |