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); |
}; |