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

Unified Diff: chromeos/dbus/cryptohome_client.h

Issue 13818032: Added dbus bindings for new cryptohomed attestation APIs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: chromeos/dbus/cryptohome_client.h
diff --git a/chromeos/dbus/cryptohome_client.h b/chromeos/dbus/cryptohome_client.h
index 7cc3c233b838875d5563be2ede75f494124e44ef..d9ddf1b66ea0e9d4b0567138accbe1ded4181dc8 100644
--- a/chromeos/dbus/cryptohome_client.h
+++ b/chromeos/dbus/cryptohome_client.h
@@ -324,6 +324,25 @@ class CHROMEOS_EXPORT CryptohomeClient {
const std::string& challenge,
const AsyncMethodCallback& callback) = 0;
+ // Gets the payload associated with the key specified by |key_type| and
+ // |key_name|. The |callback| will be called when the operation completes.
+ // If the key does not exist the callback |result| parameter will be false.
+ // If no payload has been set for the key the callback |result| parameter will
+ // be true and the |data| parameter will be empty.
+ virtual void TpmAttestationGetKeyPayload(
+ AttestationKeyType key_type,
+ const std::string& key_name,
+ const DataMethodCallback& callback) = 0;
+
+ // Sets the |payload| associated with the key specified by |key_type| and
+ // |key_name|. The |callback| will be called when the operation completes.
+ // If the operation succeeds, the callback |result| parameter will be true.
+ virtual void TpmAttestationSetKeyPayload(
+ AttestationKeyType key_type,
+ const std::string& key_name,
+ const std::string& payload,
+ const BoolDBusMethodCallback& callback) = 0;
+
protected:
// Create() should be used instead.
CryptohomeClient();
« no previous file with comments | « chrome/browser/chromeos/policy/device_local_account_browsertest.cc ('k') | chromeos/dbus/cryptohome_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698