summaryrefslogtreecommitdiffstats
path: root/chromeos/dbus/cryptohome_client.h
diff options
context:
space:
mode:
authorhashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-17 16:49:04 +0000
committerhashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-17 16:49:04 +0000
commit1c947bdfa5d01e949219d58ca969768b2b2dcc30 (patch)
tree7ddc06d7ad495911ad1e1742e78ce430997809c9 /chromeos/dbus/cryptohome_client.h
parent56b62d3396a651d350ddbbe540fcc7aeaaba1da0 (diff)
downloadchromium_src-1c947bdfa5d01e949219d58ca969768b2b2dcc30.zip
chromium_src-1c947bdfa5d01e949219d58ca969768b2b2dcc30.tar.gz
chromium_src-1c947bdfa5d01e949219d58ca969768b2b2dcc30.tar.bz2
chromeos: Implement async version of CryptohomeClient::Tpm* methods
Implement new async version TPM methods. Existing blocking version methods are renamed to Call*AndBlock. Blocking version methods will be removed in near future after all users finsh switching to the async version. BUG=141010, 141011, 141012 Review URL: https://chromiumcodereview.appspot.com/12207200 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183038 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/dbus/cryptohome_client.h')
-rw-r--r--chromeos/dbus/cryptohome_client.h21
1 files changed, 17 insertions, 4 deletions
diff --git a/chromeos/dbus/cryptohome_client.h b/chromeos/dbus/cryptohome_client.h
index 9d94d46..998461a 100644
--- a/chromeos/dbus/cryptohome_client.h
+++ b/chromeos/dbus/cryptohome_client.h
@@ -117,28 +117,41 @@ class CHROMEOS_EXPORT CryptohomeClient {
// Calls TpmIsEnabled method and returns true when the call succeeds.
// This method blocks until the call returns.
- // TODO(hashimoto): Remove this method. crosbug.com/28500
+ // TODO(hashimoto): Remove this method. crbug.com/141006
virtual bool CallTpmIsEnabledAndBlock(bool* enabled) = 0;
// Calls TpmGetPassword method.
virtual void TpmGetPassword(const StringDBusMethodCallback& callback) = 0;
+ // Calls TpmIsOwned method.
+ virtual void TpmIsOwned(const BoolDBusMethodCallback& callback) = 0;
+
// Calls TpmIsOwned method and returns true when the call succeeds.
// This method blocks until the call returns.
- virtual bool TpmIsOwned(bool* owned) = 0;
+ // TODO(hashimoto): Remove this method. crbug.com/141012
+ virtual bool CallTpmIsOwnedAndBlock(bool* owned) = 0;
+
+ // Calls TpmIsBeingOwned method.
+ virtual void TpmIsBeingOwned(const BoolDBusMethodCallback& callback) = 0;
// Calls TpmIsBeingOwned method and returns true when the call succeeds.
// This method blocks until the call returns.
- virtual bool TpmIsBeingOwned(bool* owning) = 0;
+ // TODO(hashimoto): Remove this method. crbug.com/141011
+ virtual bool CallTpmIsBeingOwnedAndBlock(bool* owning) = 0;
// Calls TpmCanAttemptOwnership method.
// This method tells the service that it is OK to attempt ownership.
virtual void TpmCanAttemptOwnership(
const VoidDBusMethodCallback& callback) = 0;
+ // Calls TpmClearStoredPasswordMethod.
+ virtual void TpmClearStoredPassword(
+ const VoidDBusMethodCallback& callback) = 0;
+
// Calls TpmClearStoredPassword method and returns true when the call
// succeeds. This method blocks until the call returns.
- virtual bool TpmClearStoredPassword() = 0;
+ // TODO(hashimoto): Remove this method. crbug.com/141010
+ virtual bool CallTpmClearStoredPasswordAndBlock() = 0;
// Calls Pkcs11IsTpmTokenReady method.
virtual void Pkcs11IsTpmTokenReady(