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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 virtual void AsyncMigrateKey(const cryptohome::Identification& cryptohome_id, | 132 virtual void AsyncMigrateKey(const cryptohome::Identification& cryptohome_id, |
133 const std::string& from_key, | 133 const std::string& from_key, |
134 const std::string& to_key, | 134 const std::string& to_key, |
135 const AsyncMethodCallback& callback) = 0; | 135 const AsyncMethodCallback& callback) = 0; |
136 | 136 |
137 // Calls AsyncRemove method. |callback| is called after the method call | 137 // Calls AsyncRemove method. |callback| is called after the method call |
138 // succeeds. | 138 // succeeds. |
139 virtual void AsyncRemove(const cryptohome::Identification& cryptohome_id, | 139 virtual void AsyncRemove(const cryptohome::Identification& cryptohome_id, |
140 const AsyncMethodCallback& callback) = 0; | 140 const AsyncMethodCallback& callback) = 0; |
141 | 141 |
| 142 // Calls RenameCryptohome method. |callback| is called after the method |
| 143 // call succeeds. |
| 144 virtual void RenameCryptohome( |
| 145 const cryptohome::Identification& cryptohome_id_from, |
| 146 const cryptohome::Identification& cryptohome_id_to, |
| 147 const ProtobufMethodCallback& callback) = 0; |
| 148 |
142 // Calls GetSystemSalt method. |callback| is called after the method call | 149 // Calls GetSystemSalt method. |callback| is called after the method call |
143 // succeeds. | 150 // succeeds. |
144 virtual void GetSystemSalt(const GetSystemSaltCallback& callback) = 0; | 151 virtual void GetSystemSalt(const GetSystemSaltCallback& callback) = 0; |
145 | 152 |
146 // Calls GetSanitizedUsername method. |callback| is called after the method | 153 // Calls GetSanitizedUsername method. |callback| is called after the method |
147 // call succeeds. | 154 // call succeeds. |
148 virtual void GetSanitizedUsername( | 155 virtual void GetSanitizedUsername( |
149 const cryptohome::Identification& cryptohome_id, | 156 const cryptohome::Identification& cryptohome_id, |
150 const StringDBusMethodCallback& callback) = 0; | 157 const StringDBusMethodCallback& callback) = 0; |
151 | 158 |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 // Create() should be used instead. | 548 // Create() should be used instead. |
542 CryptohomeClient(); | 549 CryptohomeClient(); |
543 | 550 |
544 private: | 551 private: |
545 DISALLOW_COPY_AND_ASSIGN(CryptohomeClient); | 552 DISALLOW_COPY_AND_ASSIGN(CryptohomeClient); |
546 }; | 553 }; |
547 | 554 |
548 } // namespace chromeos | 555 } // namespace chromeos |
549 | 556 |
550 #endif // CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ | 557 #endif // CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ |
OLD | NEW |