| 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_CRYPTOHOME_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ | 6 #define CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 // Calls Pkcs11GetTpmTokenInfo method. This method is deprecated, you should | 229 // Calls Pkcs11GetTpmTokenInfo method. This method is deprecated, you should |
| 230 // use Pkcs11GetTpmTokenInfoForUser instead. On success |callback| will | 230 // use Pkcs11GetTpmTokenInfoForUser instead. On success |callback| will |
| 231 // receive PKCS #11 token information for the token associated with the user | 231 // receive PKCS #11 token information for the token associated with the user |
| 232 // who originally signed in (i.e. PKCS #11 slot 0). | 232 // who originally signed in (i.e. PKCS #11 slot 0). |
| 233 virtual void Pkcs11GetTpmTokenInfo( | 233 virtual void Pkcs11GetTpmTokenInfo( |
| 234 const Pkcs11GetTpmTokenInfoCallback& callback) = 0; | 234 const Pkcs11GetTpmTokenInfoCallback& callback) = 0; |
| 235 | 235 |
| 236 // Calls Pkcs11GetTpmTokenInfoForUser method. On success |callback| will | 236 // Calls Pkcs11GetTpmTokenInfoForUser method. On success |callback| will |
| 237 // receive PKCS #11 token information for the user identified by |user_email|. | 237 // receive PKCS #11 token information for the user identified by |user_email|. |
| 238 // The |user_email| must be a canonical email address as returned by | 238 // The |user_email| must be a canonical email address as returned by |
| 239 // chromeos::User::email(). | 239 // user_manager::User::email(). |
| 240 virtual void Pkcs11GetTpmTokenInfoForUser( | 240 virtual void Pkcs11GetTpmTokenInfoForUser( |
| 241 const std::string& user_email, | 241 const std::string& user_email, |
| 242 const Pkcs11GetTpmTokenInfoCallback& callback) = 0; | 242 const Pkcs11GetTpmTokenInfoCallback& callback) = 0; |
| 243 | 243 |
| 244 // Calls InstallAttributesGet method and returns true when the call succeeds. | 244 // Calls InstallAttributesGet method and returns true when the call succeeds. |
| 245 // This method blocks until the call returns. | 245 // This method blocks until the call returns. |
| 246 // The original content of |value| is lost. | 246 // The original content of |value| is lost. |
| 247 virtual bool InstallAttributesGet(const std::string& name, | 247 virtual bool InstallAttributesGet(const std::string& name, |
| 248 std::vector<uint8>* value, | 248 std::vector<uint8>* value, |
| 249 bool* successful) = 0; | 249 bool* successful) = 0; |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 // Create() should be used instead. | 530 // Create() should be used instead. |
| 531 CryptohomeClient(); | 531 CryptohomeClient(); |
| 532 | 532 |
| 533 private: | 533 private: |
| 534 DISALLOW_COPY_AND_ASSIGN(CryptohomeClient); | 534 DISALLOW_COPY_AND_ASSIGN(CryptohomeClient); |
| 535 }; | 535 }; |
| 536 | 536 |
| 537 } // namespace chromeos | 537 } // namespace chromeos |
| 538 | 538 |
| 539 #endif // CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ | 539 #endif // CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ |
| OLD | NEW |