| 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 cryptohome::Identification& cryptohome_id, | 32 void AsyncCheckKey(const cryptohome::Identification& cryptohome_id, |
| 33 const std::string& key, | 33 const std::string& key, |
| 34 const AsyncMethodCallback& callback) override; | 34 const AsyncMethodCallback& callback) override; |
| 35 void AsyncMigrateKey(const cryptohome::Identification& cryptohome_id, | 35 void AsyncMigrateKey(const cryptohome::Identification& cryptohome_id, |
| 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 cryptohome::Identification& cryptohome_id, | 39 void AsyncRemove(const cryptohome::Identification& cryptohome_id, |
| 40 const AsyncMethodCallback& callback) override; | 40 const AsyncMethodCallback& callback) override; |
| 41 void RenameCryptohome(const cryptohome::Identification& cryptohome_id_from, |
| 42 const cryptohome::Identification& cryptohome_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 cryptohome::Identification& cryptohome_id, | 45 void GetSanitizedUsername(const cryptohome::Identification& cryptohome_id, |
| 43 const StringDBusMethodCallback& callback) override; | 46 const StringDBusMethodCallback& callback) override; |
| 44 std::string BlockingGetSanitizedUsername( | 47 std::string BlockingGetSanitizedUsername( |
| 45 const cryptohome::Identification& cryptohome_id) override; | 48 const cryptohome::Identification& cryptohome_id) override; |
| 46 void AsyncMount(const cryptohome::Identification& cryptohome_id, | 49 void AsyncMount(const cryptohome::Identification& cryptohome_id, |
| 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 cryptohome::Identification& cryptohome_id, | 53 void AsyncAddKey(const cryptohome::Identification& cryptohome_id, |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 std::map<std::string, std::vector<uint8_t>> install_attrs_; | 239 std::map<std::string, std::vector<uint8_t>> install_attrs_; |
| 237 bool locked_; | 240 bool locked_; |
| 238 base::WeakPtrFactory<FakeCryptohomeClient> weak_ptr_factory_; | 241 base::WeakPtrFactory<FakeCryptohomeClient> weak_ptr_factory_; |
| 239 | 242 |
| 240 DISALLOW_COPY_AND_ASSIGN(FakeCryptohomeClient); | 243 DISALLOW_COPY_AND_ASSIGN(FakeCryptohomeClient); |
| 241 }; | 244 }; |
| 242 | 245 |
| 243 } // namespace chromeos | 246 } // namespace chromeos |
| 244 | 247 |
| 245 #endif // CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_ | 248 #endif // CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_ |
| OLD | NEW |