OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_FAKE_CRYPTOHOME_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_ |
6 #define CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 20 matching lines...) Expand all Loading... |
31 bool Unmount(bool* success) override; | 31 bool Unmount(bool* success) override; |
32 void AsyncCheckKey(const std::string& username, | 32 void AsyncCheckKey(const std::string& username, |
33 const std::string& key, | 33 const std::string& key, |
34 const AsyncMethodCallback& callback) override; | 34 const AsyncMethodCallback& callback) override; |
35 void AsyncMigrateKey(const std::string& username, | 35 void AsyncMigrateKey(const std::string& username, |
36 const std::string& from_key, | 36 const std::string& from_key, |
37 const std::string& to_key, | 37 const std::string& to_key, |
38 const AsyncMethodCallback& callback) override; | 38 const AsyncMethodCallback& callback) override; |
39 void AsyncRemove(const std::string& username, | 39 void AsyncRemove(const std::string& username, |
40 const AsyncMethodCallback& callback) override; | 40 const AsyncMethodCallback& callback) override; |
| 41 void RenameCryptohome(const cryptohome::AccountIdentifier& id_from, |
| 42 const cryptohome::AccountIdentifier& id_to, |
| 43 const ProtobufMethodCallback& callback) override; |
41 void GetSystemSalt(const GetSystemSaltCallback& callback) override; | 44 void GetSystemSalt(const GetSystemSaltCallback& callback) override; |
42 void GetSanitizedUsername(const std::string& username, | 45 void GetSanitizedUsername(const std::string& username, |
43 const StringDBusMethodCallback& callback) override; | 46 const StringDBusMethodCallback& callback) override; |
44 std::string BlockingGetSanitizedUsername( | 47 std::string BlockingGetSanitizedUsername( |
45 const std::string& username) override; | 48 const std::string& username) override; |
46 void AsyncMount(const std::string& username, | 49 void AsyncMount(const std::string& username, |
47 const std::string& key, | 50 const std::string& key, |
48 int flags, | 51 int flags, |
49 const AsyncMethodCallback& callback) override; | 52 const AsyncMethodCallback& callback) override; |
50 void AsyncAddKey(const std::string& username, | 53 void AsyncAddKey(const std::string& username, |
(...skipping 12 matching lines...) Expand all Loading... |
63 bool CallTpmIsOwnedAndBlock(bool* owned) override; | 66 bool CallTpmIsOwnedAndBlock(bool* owned) override; |
64 void TpmIsBeingOwned(const BoolDBusMethodCallback& callback) override; | 67 void TpmIsBeingOwned(const BoolDBusMethodCallback& callback) override; |
65 bool CallTpmIsBeingOwnedAndBlock(bool* owning) override; | 68 bool CallTpmIsBeingOwnedAndBlock(bool* owning) override; |
66 void TpmCanAttemptOwnership(const VoidDBusMethodCallback& callback) override; | 69 void TpmCanAttemptOwnership(const VoidDBusMethodCallback& callback) override; |
67 void TpmClearStoredPassword(const VoidDBusMethodCallback& callback) override; | 70 void TpmClearStoredPassword(const VoidDBusMethodCallback& callback) override; |
68 bool CallTpmClearStoredPasswordAndBlock() override; | 71 bool CallTpmClearStoredPasswordAndBlock() override; |
69 void Pkcs11IsTpmTokenReady(const BoolDBusMethodCallback& callback) override; | 72 void Pkcs11IsTpmTokenReady(const BoolDBusMethodCallback& callback) override; |
70 void Pkcs11GetTpmTokenInfo( | 73 void Pkcs11GetTpmTokenInfo( |
71 const Pkcs11GetTpmTokenInfoCallback& callback) override; | 74 const Pkcs11GetTpmTokenInfoCallback& callback) override; |
72 void Pkcs11GetTpmTokenInfoForUser( | 75 void Pkcs11GetTpmTokenInfoForUser( |
73 const std::string& username, | 76 const std::string& user_id, |
74 const Pkcs11GetTpmTokenInfoCallback& callback) override; | 77 const Pkcs11GetTpmTokenInfoCallback& callback) override; |
75 bool InstallAttributesGet(const std::string& name, | 78 bool InstallAttributesGet(const std::string& name, |
76 std::vector<uint8_t>* value, | 79 std::vector<uint8_t>* value, |
77 bool* successful) override; | 80 bool* successful) override; |
78 bool InstallAttributesSet(const std::string& name, | 81 bool InstallAttributesSet(const std::string& name, |
79 const std::vector<uint8_t>& value, | 82 const std::vector<uint8_t>& value, |
80 bool* successful) override; | 83 bool* successful) override; |
81 bool InstallAttributesFinalize(bool* successful) override; | 84 bool InstallAttributesFinalize(bool* successful) override; |
82 void InstallAttributesIsReady( | 85 void InstallAttributesIsReady( |
83 const BoolDBusMethodCallback& callback) override; | 86 const BoolDBusMethodCallback& callback) override; |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 std::map<std::string, std::vector<uint8_t>> install_attrs_; | 236 std::map<std::string, std::vector<uint8_t>> install_attrs_; |
234 bool locked_; | 237 bool locked_; |
235 base::WeakPtrFactory<FakeCryptohomeClient> weak_ptr_factory_; | 238 base::WeakPtrFactory<FakeCryptohomeClient> weak_ptr_factory_; |
236 | 239 |
237 DISALLOW_COPY_AND_ASSIGN(FakeCryptohomeClient); | 240 DISALLOW_COPY_AND_ASSIGN(FakeCryptohomeClient); |
238 }; | 241 }; |
239 | 242 |
240 } // namespace chromeos | 243 } // namespace chromeos |
241 | 244 |
242 #endif // CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_ | 245 #endif // CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_ |
OLD | NEW |