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_CONNECTOR_H_ | 5 #ifndef SERVICES_SERVICE_MANAGER_PUBLIC_CPP_CONNECTOR_H_ |
6 #define SERVICES_SERVICE_MANAGER_PUBLIC_CPP_CONNECTOR_H_ | 6 #define SERVICES_SERVICE_MANAGER_PUBLIC_CPP_CONNECTOR_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "services/service_manager/public/cpp/connection.h" | 10 #include "services/service_manager/public/cpp/connection.h" |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 void ConnectToInterface(const std::string& name, | 102 void ConnectToInterface(const std::string& name, |
103 mojo::InterfacePtr<Interface>* ptr) { | 103 mojo::InterfacePtr<Interface>* ptr) { |
104 ConnectParams params(name); | 104 ConnectParams params(name); |
105 return ConnectToInterface(¶ms, ptr); | 105 return ConnectToInterface(¶ms, ptr); |
106 } | 106 } |
107 | 107 |
108 // Creates a new instance of this class which may be passed to another thread. | 108 // Creates a new instance of this class which may be passed to another thread. |
109 // The returned object may be passed multiple times until Connect() is called, | 109 // The returned object may be passed multiple times until Connect() is called, |
110 // at which point this method must be called again to pass again. | 110 // at which point this method must be called again to pass again. |
111 virtual std::unique_ptr<Connector> Clone() = 0; | 111 virtual std::unique_ptr<Connector> Clone() = 0; |
| 112 |
| 113 // Binds a Connector request to the other end of this Connector. |
| 114 virtual void BindRequest(mojom::ConnectorRequest request) = 0; |
112 }; | 115 }; |
113 | 116 |
114 } // namespace service_manager | 117 } // namespace service_manager |
115 | 118 |
116 #endif // SERVICES_SERVICE_MANAGER_PUBLIC_CPP_CONNECTOR_H_ | 119 #endif // SERVICES_SERVICE_MANAGER_PUBLIC_CPP_CONNECTOR_H_ |
OLD | NEW |