OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ |
6 #define CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ | 6 #define CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 const std::string& nonce, | 149 const std::string& nonce, |
150 const std::string& signed_data, | 150 const std::string& signed_data, |
151 const std::string& device_serial, | 151 const std::string& device_serial, |
152 const std::string& service_path, | 152 const std::string& service_path, |
153 const StringCallback& callback, | 153 const StringCallback& callback, |
154 const ErrorCallback& error_callback) = 0; | 154 const ErrorCallback& error_callback) = 0; |
155 | 155 |
156 // Verify that the given data corresponds to a trusted device, and return the | 156 // Verify that the given data corresponds to a trusted device, and return the |
157 // |data| encrypted using the |public_key| for the trusted device. If the | 157 // |data| encrypted using the |public_key| for the trusted device. If the |
158 // device is not trusted, return the empty string. | 158 // device is not trusted, return the empty string. |
159 virtual void VerifyAndEncryptData(const std::string& certificate, | 159 virtual void VerifyAndEncryptData( |
160 const std::string& public_key, | 160 const std::string& certificate, |
161 const std::string& nonce, | 161 const std::string& public_key, |
162 const std::string& signed_data, | 162 const std::string& nonce, |
163 const std::string& device_serial, | 163 const std::string& signed_data, |
164 const std::string& data, | 164 const std::string& device_serial, |
165 const StringCallback& callback, | 165 const std::string& data, |
166 const ErrorCallback& error_callback) = 0; | 166 const StringCallback& callback, |
| 167 const ErrorCallback& error_callback) = 0; |
| 168 |
| 169 // For each technology present, connect to the "best" service available. |
| 170 // Called once the user is logged in and certificates are loaded. |
| 171 virtual void ConnectToBestServices(const base::Closure& callback, |
| 172 const ErrorCallback& error_callback) = 0; |
167 | 173 |
168 // Returns an interface for testing (stub only), or returns NULL. | 174 // Returns an interface for testing (stub only), or returns NULL. |
169 virtual TestInterface* GetTestInterface() = 0; | 175 virtual TestInterface* GetTestInterface() = 0; |
170 | 176 |
171 protected: | 177 protected: |
172 // Create() should be used instead. | 178 // Create() should be used instead. |
173 ShillManagerClient(); | 179 ShillManagerClient(); |
174 | 180 |
175 private: | 181 private: |
176 DISALLOW_COPY_AND_ASSIGN(ShillManagerClient); | 182 DISALLOW_COPY_AND_ASSIGN(ShillManagerClient); |
177 }; | 183 }; |
178 | 184 |
179 } // namespace chromeos | 185 } // namespace chromeos |
180 | 186 |
181 #endif // CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ | 187 #endif // CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ |
OLD | NEW |