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

Side by Side Diff: tpm_init.h

Issue 3236009: Add additional status APIs for the TPM. (Closed) Base URL: http://git.chromium.org/git/tpm_init.git
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tpm.cc ('k') | tpm_init.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009-2010 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2009-2010 The Chromium OS Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // TpmInit - public interface class for initializing the TPM 5 // TpmInit - public interface class for initializing the TPM
6 6
7 #include <base/scoped_ptr.h> 7 #include <base/scoped_ptr.h>
8 #include <base/platform_thread.h> 8 #include <base/platform_thread.h>
9 #include <chromeos/utility.h> 9 #include <chromeos/utility.h>
10 10
(...skipping 21 matching lines...) Expand all
32 32
33 // Starts asynchronous initialization of the TPM 33 // Starts asynchronous initialization of the TPM
34 virtual bool StartInitializeTpm(); 34 virtual bool StartInitializeTpm();
35 35
36 // Returns true if the TPM is initialized and ready for use 36 // Returns true if the TPM is initialized and ready for use
37 virtual bool IsTpmReady(); 37 virtual bool IsTpmReady();
38 38
39 // Returns true if the TPM is enabled 39 // Returns true if the TPM is enabled
40 virtual bool IsTpmEnabled(); 40 virtual bool IsTpmEnabled();
41 41
42 // Returns true if the TPM is owned
43 virtual bool IsTpmOwned();
44
45 // Returns true if the TPM is being owned
46 virtual bool IsTpmBeingOwned();
47
42 // Gets the TPM password if the TPM initialization took ownership 48 // Gets the TPM password if the TPM initialization took ownership
43 // 49 //
44 // Parameters 50 // Parameters
45 // password (OUT) - The owner password used for the TPM 51 // password (OUT) - The owner password used for the TPM
46 virtual bool GetTpmPassword(chromeos::Blob* password); 52 virtual bool GetTpmPassword(chromeos::Blob* password);
47 53
48 // Returns the number of milliseconds it took to initialize the TPM 54 // Returns the number of milliseconds it took to initialize the TPM
49 virtual long GetInitializationMillis(); 55 virtual long GetInitializationMillis();
50 56
51 private: 57 private:
52 // The background task for initializing the TPM, implemented as a 58 // The background task for initializing the TPM, implemented as a
53 // PlatformThread::Delegate 59 // PlatformThread::Delegate
54 scoped_ptr<TpmInitTask> tpm_init_; 60 scoped_ptr<TpmInitTask> tpm_init_;
55 61
56 DISALLOW_COPY_AND_ASSIGN(TpmInit); 62 DISALLOW_COPY_AND_ASSIGN(TpmInit);
57 }; 63 };
58 64
59 } // namespace tpm_init 65 } // namespace tpm_init
60 66
61 #endif // TPM_INIT_TPM_INIT_H_ 67 #endif // TPM_INIT_TPM_INIT_H_
OLDNEW
« 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