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 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 const ProtobufMethodCallback& callback) = 0; | 587 const ProtobufMethodCallback& callback) = 0; |
588 | 588 |
589 // Asynchronously calls SetFirmwareManagementParameters method. |callback| | 589 // Asynchronously calls SetFirmwareManagementParameters method. |callback| |
590 // is called after method call, and with reply protobuf. |request| contains | 590 // is called after method call, and with reply protobuf. |request| contains |
591 // the flags to be set. SetFirmwareManagementParameters creates the firmware | 591 // the flags to be set. SetFirmwareManagementParameters creates the firmware |
592 // management parameters in TPM and sets flags included in the request. | 592 // management parameters in TPM and sets flags included in the request. |
593 virtual void SetFirmwareManagementParametersInTpm( | 593 virtual void SetFirmwareManagementParametersInTpm( |
594 const cryptohome::SetFirmwareManagementParametersRequest& request, | 594 const cryptohome::SetFirmwareManagementParametersRequest& request, |
595 const ProtobufMethodCallback& callback) = 0; | 595 const ProtobufMethodCallback& callback) = 0; |
596 | 596 |
| 597 // Calls NeedsDircryptoMigration to find out whether the given user needs |
| 598 // dircrypto migration. |
| 599 virtual void NeedsDircryptoMigration( |
| 600 const cryptohome::Identification& cryptohome_id, |
| 601 const BoolDBusMethodCallback& callback) = 0; |
| 602 |
597 protected: | 603 protected: |
598 // Create() should be used instead. | 604 // Create() should be used instead. |
599 CryptohomeClient(); | 605 CryptohomeClient(); |
600 | 606 |
601 private: | 607 private: |
602 DISALLOW_COPY_AND_ASSIGN(CryptohomeClient); | 608 DISALLOW_COPY_AND_ASSIGN(CryptohomeClient); |
603 }; | 609 }; |
604 | 610 |
605 } // namespace chromeos | 611 } // namespace chromeos |
606 | 612 |
607 #endif // CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ | 613 #endif // CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ |
OLD | NEW |