Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Side by Side Diff: chromeos/dbus/cryptohome_client.h

Issue 2727713003: Update FWMP in TPM (Closed)
Patch Set: Nits Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 virtual void RemoveFirmwareManagementParametersFromTpm(
587 const cryptohome::RemoveFirmwareManagementParametersRequest& request,
588 const ProtobufMethodCallback& callback) = 0;
589
590 // Asynchronously calls SetFirmwareManagementParameters method. |callback|
591 // is called after method call, and with reply protobuf. |request| contains
592 // the flags to be set. SetFirmwareManagementParameters creates the firmware
593 // management parameters in TPM and sets flags included in the request.
594 virtual void SetFirmwareManagementParametersInTpm(
595 const cryptohome::SetFirmwareManagementParametersRequest& request,
596 const ProtobufMethodCallback& callback) = 0;
597
582 protected: 598 protected:
583 // Create() should be used instead. 599 // Create() should be used instead.
584 CryptohomeClient(); 600 CryptohomeClient();
585 601
586 private: 602 private:
587 DISALLOW_COPY_AND_ASSIGN(CryptohomeClient); 603 DISALLOW_COPY_AND_ASSIGN(CryptohomeClient);
588 }; 604 };
589 605
590 } // namespace chromeos 606 } // namespace chromeos
591 607
592 #endif // CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ 608 #endif // CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/settings/install_attributes_unittest.cc ('k') | chromeos/dbus/cryptohome_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698