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

Unified Diff: tpm_init.h

Issue 3437016: Add better handling of a TPM clear. (Closed) Base URL: http://git.chromium.org/git/tpm_init.git
Patch Set: Remove unnecessary include. Created 10 years, 3 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
« no previous file with comments | « tpm.cc ('k') | tpm_init.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tpm_init.h
diff --git a/tpm_init.h b/tpm_init.h
index 1f15fd43e8bfc7a2068bdd4b2629c1dd4baa9b86..8a0024f853fe6fd6e6a249dfb8c8ea9a69df4349 100644
--- a/tpm_init.h
+++ b/tpm_init.h
@@ -18,11 +18,18 @@ class TpmInitTask;
class TpmInit {
public:
+ class TpmInitCallback {
+ public:
+ virtual void InitializeTpmComplete(bool status, bool took_ownership) = 0;
+ };
+
// Default constructor
TpmInit();
virtual ~TpmInit();
+ virtual void Init(TpmInitCallback* notify_callback);
+
// Gets random data from the TPM
//
// Parameters
@@ -57,7 +64,9 @@ class TpmInit {
private:
// The background task for initializing the TPM, implemented as a
// PlatformThread::Delegate
- scoped_ptr<TpmInitTask> tpm_init_;
+ scoped_ptr<TpmInitTask> tpm_init_task_;
+
+ TpmInitCallback* notify_callback_;
DISALLOW_COPY_AND_ASSIGN(TpmInit);
};
« no previous file with comments | « tpm.cc ('k') | tpm_init.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698