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

Unified Diff: chrome/browser/chromeos/login/tpm_password_fetcher.h

Issue 10703162: chromeos: Remove CryptohomeLibrary::TpmGetPassword and TpmIsReady (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix chromium style error Created 8 years, 5 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: chrome/browser/chromeos/login/tpm_password_fetcher.h
diff --git a/chrome/browser/chromeos/login/tpm_password_fetcher.h b/chrome/browser/chromeos/login/tpm_password_fetcher.h
index 326e942dfc91cf219b7050acd4269839c0cb81c4..155991172606732287826e6f0c4043358f4f01aa 100644
--- a/chrome/browser/chromeos/login/tpm_password_fetcher.h
+++ b/chrome/browser/chromeos/login/tpm_password_fetcher.h
@@ -9,6 +9,7 @@
#include "base/basictypes.h"
#include "base/memory/weak_ptr.h"
+#include "chromeos/dbus/dbus_method_call_status.h"
namespace chromeos {
@@ -33,6 +34,16 @@ class TpmPasswordFetcher {
void Fetch();
private:
+ // Used to implement Fetch().
+ void OnTpmIsReady(DBusMethodCallStatus call_status, bool tpm_is_ready);
+
+ // Used to implement Fetch().
+ void OnTpmGetPassword(DBusMethodCallStatus call_status,
+ const std::string& password);
+
+ // Posts a task to call Fetch() later.
+ void RescheduleFetch();
+
base::WeakPtrFactory<TpmPasswordFetcher> weak_factory_;
TpmPasswordFetcherDelegate* delegate_;

Powered by Google App Engine
This is Rietveld 408576698