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

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

Issue 2812053004: Update FWMP in TPM (Closed)
Patch Set: 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>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "chromeos/attestation/attestation_constants.h" 15 #include "chromeos/attestation/attestation_constants.h"
16 #include "chromeos/chromeos_export.h" 16 #include "chromeos/chromeos_export.h"
17 #include "chromeos/dbus/dbus_client.h" 17 #include "chromeos/dbus/dbus_client.h"
18 #include "chromeos/dbus/dbus_method_call_status.h" 18 #include "chromeos/dbus/dbus_method_call_status.h"
19 19
20 namespace cryptohome { 20 namespace cryptohome {
21 21
22 class AddKeyRequest; 22 class AddKeyRequest;
23 class AuthorizationRequest; 23 class AuthorizationRequest;
24 class BaseReply; 24 class BaseReply;
25 class CheckKeyRequest; 25 class CheckKeyRequest;
26 class FlushAndSignBootAttributesRequest; 26 class FlushAndSignBootAttributesRequest;
27 class GetBootAttributeRequest; 27 class GetBootAttributeRequest;
28 class GetKeyDataRequest; 28 class GetKeyDataRequest;
29 class MountRequest; 29 class MountRequest;
30 class RemoveFirmwareManagementParametersRequest;
30 class RemoveKeyRequest; 31 class RemoveKeyRequest;
31 class SetBootAttributeRequest; 32 class SetBootAttributeRequest;
33 class SetFirmwareManagementParametersRequest;
32 class UpdateKeyRequest; 34 class UpdateKeyRequest;
33 35
34 class Identification; 36 class Identification;
35 37
36 } // namespace cryptohome 38 } // namespace cryptohome
37 39
38 namespace chromeos { 40 namespace chromeos {
39 41
40 // CryptohomeClient is used to communicate with the Cryptohome service. 42 // CryptohomeClient is used to communicate with the Cryptohome service.
41 // All method should be called from the origin thread (UI thread) which 43 // All method should be called from the origin thread (UI thread) which
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 550
549 // Asynchronously calls FlushAndSignBootAttributes method. |callback| is 551 // Asynchronously calls FlushAndSignBootAttributes method. |callback| is
550 // called after method call, and with reply protobuf. 552 // called after method call, and with reply protobuf.
551 // FlushAndSignBootAttributes makes all pending boot attribute settings 553 // FlushAndSignBootAttributes makes all pending boot attribute settings
552 // available, and have them signed by a special TPM key. This method always 554 // available, and have them signed by a special TPM key. This method always
553 // fails after any user, publuc, or guest session starts. 555 // fails after any user, publuc, or guest session starts.
554 virtual void FlushAndSignBootAttributes( 556 virtual void FlushAndSignBootAttributes(
555 const cryptohome::FlushAndSignBootAttributesRequest& request, 557 const cryptohome::FlushAndSignBootAttributesRequest& request,
556 const ProtobufMethodCallback& callback) = 0; 558 const ProtobufMethodCallback& callback) = 0;
557 559
560 // Asynchronously calls RemoveFirmwareManagementParameters method. |callback|
561 // is called after method call, and with reply protobuf.
562 virtual void RemoveFirmwareManagementParametersFromTpm(
563 const cryptohome::RemoveFirmwareManagementParametersRequest& request,
564 const ProtobufMethodCallback& callback) = 0;
565
566 // Asynchronously calls SetFirmwareManagementParameters method. |callback|
567 // is called after method call, and with reply protobuf. |request| contains
568 // the flags to be set. SetFirmwareManagementParameters creates the firmware
569 // management parameters in TPM and sets flags included in the request.
570 virtual void SetFirmwareManagementParametersInTpm(
571 const cryptohome::SetFirmwareManagementParametersRequest& request,
572 const ProtobufMethodCallback& callback) = 0;
573
558 protected: 574 protected:
559 // Create() should be used instead. 575 // Create() should be used instead.
560 CryptohomeClient(); 576 CryptohomeClient();
561 577
562 private: 578 private:
563 DISALLOW_COPY_AND_ASSIGN(CryptohomeClient); 579 DISALLOW_COPY_AND_ASSIGN(CryptohomeClient);
564 }; 580 };
565 581
566 } // namespace chromeos 582 } // namespace chromeos
567 583
568 #endif // CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ 584 #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