From a737276ee3ac1896f2c4bb6694eefb97a22b81b5 Mon Sep 17 00:00:00 2001 From: "hashimoto@chromium.org" Date: Tue, 31 Jul 2012 04:13:38 +0000 Subject: Convert chromeos::CryptohomeClient::TpmCanAttemptOwnership to asynchronous BUG=126674 TEST=git try -b linux_chromeos Review URL: https://chromiumcodereview.appspot.com/10830033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149136 0039d316-1c4b-4281-b951-d872f2087c98 --- chromeos/dbus/cryptohome_client.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'chromeos/dbus/cryptohome_client.h') diff --git a/chromeos/dbus/cryptohome_client.h b/chromeos/dbus/cryptohome_client.h index 530f57f..f4a86837 100644 --- a/chromeos/dbus/cryptohome_client.h +++ b/chromeos/dbus/cryptohome_client.h @@ -30,6 +30,9 @@ class CHROMEOS_EXPORT CryptohomeClient { > AsyncCallStatusHandler; // A callback to handle responses of AsyncXXX methods. typedef base::Callback AsyncMethodCallback; + // A callback to handle responses of methods without result values. + typedef base::Callback VoidMethodCallback; // A callback to handle responses of methods returning a bool value. typedef base::Callback BoolMethodCallback; @@ -121,9 +124,9 @@ class CHROMEOS_EXPORT CryptohomeClient { // This method blocks until the call returns. virtual bool TpmIsBeingOwned(bool* owning) = 0; - // Calls TpmCanAttemptOwnership method and returns true when the call - // succeeds. This method blocks until the call returns. - virtual bool TpmCanAttemptOwnership() = 0; + // Calls TpmCanAttemptOwnership method. + // This method tells the service that it is OK to attempt ownership. + virtual void TpmCanAttemptOwnership(const VoidMethodCallback& callback) = 0; // Calls TpmClearStoredPassword method and returns true when the call // succeeds. This method blocks until the call returns. -- cgit v1.1