| 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 <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 virtual bool Unmount(bool* success) OVERRIDE; | 29 virtual bool Unmount(bool* success) OVERRIDE; |
| 30 virtual void AsyncCheckKey(const std::string& username, | 30 virtual void AsyncCheckKey(const std::string& username, |
| 31 const std::string& key, | 31 const std::string& key, |
| 32 const AsyncMethodCallback& callback) OVERRIDE; | 32 const AsyncMethodCallback& callback) OVERRIDE; |
| 33 virtual void AsyncMigrateKey(const std::string& username, | 33 virtual void AsyncMigrateKey(const std::string& username, |
| 34 const std::string& from_key, | 34 const std::string& from_key, |
| 35 const std::string& to_key, | 35 const std::string& to_key, |
| 36 const AsyncMethodCallback& callback) OVERRIDE; | 36 const AsyncMethodCallback& callback) OVERRIDE; |
| 37 virtual void AsyncRemove(const std::string& username, | 37 virtual void AsyncRemove(const std::string& username, |
| 38 const AsyncMethodCallback& callback) OVERRIDE; | 38 const AsyncMethodCallback& callback) OVERRIDE; |
| 39 virtual bool GetSystemSalt(std::vector<uint8>* salt) OVERRIDE; | 39 virtual void GetSystemSalt(const GetSystemSaltCallback& callback) OVERRIDE; |
| 40 virtual void GetSanitizedUsername( | 40 virtual void GetSanitizedUsername( |
| 41 const std::string& username, | 41 const std::string& username, |
| 42 const StringDBusMethodCallback& callback) OVERRIDE; | 42 const StringDBusMethodCallback& callback) OVERRIDE; |
| 43 virtual std::string BlockingGetSanitizedUsername( | 43 virtual std::string BlockingGetSanitizedUsername( |
| 44 const std::string& username) OVERRIDE; | 44 const std::string& username) OVERRIDE; |
| 45 virtual void AsyncMount(const std::string& username, | 45 virtual void AsyncMount(const std::string& username, |
| 46 const std::string& key, | 46 const std::string& key, |
| 47 int flags, | 47 int flags, |
| 48 const AsyncMethodCallback& callback) OVERRIDE; | 48 const AsyncMethodCallback& callback) OVERRIDE; |
| 49 virtual void AsyncAddKey(const std::string& username, | 49 virtual void AsyncAddKey(const std::string& username, |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 std::map<std::string, std::vector<uint8> > install_attrs_; | 198 std::map<std::string, std::vector<uint8> > install_attrs_; |
| 199 bool locked_; | 199 bool locked_; |
| 200 base::WeakPtrFactory<FakeCryptohomeClient> weak_ptr_factory_; | 200 base::WeakPtrFactory<FakeCryptohomeClient> weak_ptr_factory_; |
| 201 | 201 |
| 202 DISALLOW_COPY_AND_ASSIGN(FakeCryptohomeClient); | 202 DISALLOW_COPY_AND_ASSIGN(FakeCryptohomeClient); |
| 203 }; | 203 }; |
| 204 | 204 |
| 205 } // namespace chromeos | 205 } // namespace chromeos |
| 206 | 206 |
| 207 #endif // CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_ | 207 #endif // CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_ |
| OLD | NEW |