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_SHELL_PUBLIC_CPP_INTERFACE_PROVIDER_H_ | 5 #ifndef SERVICES_SERVICE_MANAGER_PUBLIC_CPP_INTERFACE_PROVIDER_H_ |
6 #define SERVICES_SHELL_PUBLIC_CPP_INTERFACE_PROVIDER_H_ | 6 #define SERVICES_SERVICE_MANAGER_PUBLIC_CPP_INTERFACE_PROVIDER_H_ |
7 | 7 |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "services/shell/public/interfaces/interface_provider.mojom.h" | 9 #include "services/service_manager/public/interfaces/interface_provider.mojom.h" |
10 | 10 |
11 namespace shell { | 11 namespace shell { |
12 | 12 |
13 // Encapsulates a mojom::InterfaceProviderPtr implemented in a remote | 13 // Encapsulates a mojom::InterfaceProviderPtr implemented in a remote |
14 // application. Provides two main features: | 14 // application. Provides two main features: |
15 // - a typesafe GetInterface() method for binding InterfacePtrs. | 15 // - a typesafe GetInterface() method for binding InterfacePtrs. |
16 // - a testing API that allows local callbacks to be registered that bind | 16 // - a testing API that allows local callbacks to be registered that bind |
17 // requests for remote interfaces. | 17 // requests for remote interfaces. |
18 // An instance of this class is used by the GetInterface() methods on | 18 // An instance of this class is used by the GetInterface() methods on |
19 // Connection. | 19 // Connection. |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 // InterfaceProvider pipe. | 112 // InterfaceProvider pipe. |
113 ForwardCallback forward_callback_; | 113 ForwardCallback forward_callback_; |
114 | 114 |
115 base::WeakPtrFactory<InterfaceProvider> weak_factory_; | 115 base::WeakPtrFactory<InterfaceProvider> weak_factory_; |
116 | 116 |
117 DISALLOW_COPY_AND_ASSIGN(InterfaceProvider); | 117 DISALLOW_COPY_AND_ASSIGN(InterfaceProvider); |
118 }; | 118 }; |
119 | 119 |
120 } // namespace shell | 120 } // namespace shell |
121 | 121 |
122 #endif // SERVICES_SHELL_PUBLIC_CPP_INTERFACE_PROVIDER_H_ | 122 #endif // SERVICES_SERVICE_MANAGER_PUBLIC_CPP_INTERFACE_PROVIDER_H_ |
OLD | NEW |