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 10 matching lines...) Expand all Loading... | |
21 namespace cryptohome { | 21 namespace cryptohome { |
22 | 22 |
23 class AddKeyRequest; | 23 class AddKeyRequest; |
24 class AuthorizationRequest; | 24 class AuthorizationRequest; |
25 class BaseReply; | 25 class BaseReply; |
26 class CheckKeyRequest; | 26 class CheckKeyRequest; |
27 class FlushAndSignBootAttributesRequest; | 27 class FlushAndSignBootAttributesRequest; |
28 class GetBootAttributeRequest; | 28 class GetBootAttributeRequest; |
29 class GetKeyDataRequest; | 29 class GetKeyDataRequest; |
30 class MountRequest; | 30 class MountRequest; |
31 class RemoveFirmwareManagementParametersRequest; | |
31 class RemoveKeyRequest; | 32 class RemoveKeyRequest; |
32 class SetBootAttributeRequest; | 33 class SetBootAttributeRequest; |
34 class SetFirmwareManagementParametersRequest; | |
33 class UpdateKeyRequest; | 35 class UpdateKeyRequest; |
34 | 36 |
35 class Identification; | 37 class Identification; |
36 | 38 |
37 } // namespace cryptohome | 39 } // namespace cryptohome |
38 | 40 |
39 namespace chromeos { | 41 namespace chromeos { |
40 | 42 |
41 // CryptohomeClient is used to communicate with the Cryptohome service. | 43 // CryptohomeClient is used to communicate with the Cryptohome service. |
42 // All method should be called from the origin thread (UI thread) which | 44 // All method should be called from the origin thread (UI thread) which |
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
572 // start migration, and is immediately called back by |callback|. The actual | 574 // start migration, and is immediately called back by |callback|. The actual |
573 // result response is done via DircryptoMigrationProgress callback with its | 575 // result response is done via DircryptoMigrationProgress callback with its |
574 // status flag indicating the completion. | 576 // status flag indicating the completion. |
575 // MigrateToDircrypto attempts to migrate the home dir using given | 577 // MigrateToDircrypto attempts to migrate the home dir using given |
576 // authorization to the new "dircrypto" encryption. | 578 // authorization to the new "dircrypto" encryption. |
577 virtual void MigrateToDircrypto( | 579 virtual void MigrateToDircrypto( |
578 const cryptohome::Identification& cryptohome_id, | 580 const cryptohome::Identification& cryptohome_id, |
579 const cryptohome::AuthorizationRequest& auth, | 581 const cryptohome::AuthorizationRequest& auth, |
580 const VoidDBusMethodCallback& callback) = 0; | 582 const VoidDBusMethodCallback& callback) = 0; |
581 | 583 |
584 // Asynchronously calls RemoveFirmwareManagementParameters method. |callback| | |
585 // is called after method call, and with reply protobuf. | |
586 // RemoveFirmwareManagementParameters removes the firmware management | |
Daniel Erat
2017/03/29 16:50:08
nit: probably don't need this sentence; the method
igorcov
2017/03/29 17:08:26
Done.
| |
587 // parameters from TPM. | |
588 virtual void RemoveFirmwareManagementParametersFromTpm( | |
589 const cryptohome::RemoveFirmwareManagementParametersRequest& request, | |
590 const ProtobufMethodCallback& callback) = 0; | |
591 | |
592 // Asynchronously calls SetFirmwareManagementParameters method. |callback| | |
593 // is called after method call, and with reply protobuf. |request| contains | |
594 // the flags to be set. SetFirmwareManagementParameters creates the firmware | |
595 // management parameters in TPM and sets flags included in the request. | |
596 virtual void SetFirmwareManagementParametersInTpm( | |
597 const cryptohome::SetFirmwareManagementParametersRequest& request, | |
598 const ProtobufMethodCallback& callback) = 0; | |
599 | |
582 protected: | 600 protected: |
583 // Create() should be used instead. | 601 // Create() should be used instead. |
584 CryptohomeClient(); | 602 CryptohomeClient(); |
585 | 603 |
586 private: | 604 private: |
587 DISALLOW_COPY_AND_ASSIGN(CryptohomeClient); | 605 DISALLOW_COPY_AND_ASSIGN(CryptohomeClient); |
588 }; | 606 }; |
589 | 607 |
590 } // namespace chromeos | 608 } // namespace chromeos |
591 | 609 |
592 #endif // CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ | 610 #endif // CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ |
OLD | NEW |