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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 const cryptohome::AuthorizationRequest& auth, | 200 const cryptohome::AuthorizationRequest& auth, |
201 const VoidDBusMethodCallback& callback) override; | 201 const VoidDBusMethodCallback& callback) override; |
202 void SetDircryptoMigrationProgressHandler( | 202 void SetDircryptoMigrationProgressHandler( |
203 const DircryptoMigrationProgessHandler& handler) override; | 203 const DircryptoMigrationProgessHandler& handler) override; |
204 void RemoveFirmwareManagementParametersFromTpm( | 204 void RemoveFirmwareManagementParametersFromTpm( |
205 const cryptohome::RemoveFirmwareManagementParametersRequest& request, | 205 const cryptohome::RemoveFirmwareManagementParametersRequest& request, |
206 const ProtobufMethodCallback& callback) override; | 206 const ProtobufMethodCallback& callback) override; |
207 void SetFirmwareManagementParametersInTpm( | 207 void SetFirmwareManagementParametersInTpm( |
208 const cryptohome::SetFirmwareManagementParametersRequest& request, | 208 const cryptohome::SetFirmwareManagementParametersRequest& request, |
209 const ProtobufMethodCallback& callback) override; | 209 const ProtobufMethodCallback& callback) override; |
| 210 void NeedsDircryptoMigration(const cryptohome::Identification& cryptohome_id, |
| 211 const BoolDBusMethodCallback& callback) override; |
210 | 212 |
211 // Changes the behavior of WaitForServiceToBeAvailable(). This method runs | 213 // Changes the behavior of WaitForServiceToBeAvailable(). This method runs |
212 // pending callbacks if is_available is true. | 214 // pending callbacks if is_available is true. |
213 void SetServiceIsAvailable(bool is_available); | 215 void SetServiceIsAvailable(bool is_available); |
214 | 216 |
215 // Sets the unmount result of Unmount() call. | 217 // Sets the unmount result of Unmount() call. |
216 void set_unmount_result(bool result) { | 218 void set_unmount_result(bool result) { |
217 unmount_result_ = result; | 219 unmount_result_ = result; |
218 } | 220 } |
219 | 221 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 uint64_t dircrypto_migration_progress_; | 273 uint64_t dircrypto_migration_progress_; |
272 | 274 |
273 base::WeakPtrFactory<FakeCryptohomeClient> weak_ptr_factory_; | 275 base::WeakPtrFactory<FakeCryptohomeClient> weak_ptr_factory_; |
274 | 276 |
275 DISALLOW_COPY_AND_ASSIGN(FakeCryptohomeClient); | 277 DISALLOW_COPY_AND_ASSIGN(FakeCryptohomeClient); |
276 }; | 278 }; |
277 | 279 |
278 } // namespace chromeos | 280 } // namespace chromeos |
279 | 281 |
280 #endif // CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_ | 282 #endif // CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_ |
OLD | NEW |