| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium 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 #ifndef CHROME_BROWSER_CHROMEOS_CROS_CRYPTOHOME_LIBRARY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_CRYPTOHOME_LIBRARY_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_CROS_CRYPTOHOME_LIBRARY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CROS_CRYPTOHOME_LIBRARY_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 // Return value is true if password was successfully acquired. | 125 // Return value is true if password was successfully acquired. |
| 126 virtual bool TpmGetPassword(std::string* password) = 0; | 126 virtual bool TpmGetPassword(std::string* password) = 0; |
| 127 | 127 |
| 128 // Attempts to start owning (if device isn't owned and isn't being owned). | 128 // Attempts to start owning (if device isn't owned and isn't being owned). |
| 129 virtual void TpmCanAttemptOwnership() = 0; | 129 virtual void TpmCanAttemptOwnership() = 0; |
| 130 | 130 |
| 131 // Clears Tpm password. Password should be cleared after it was generated and | 131 // Clears Tpm password. Password should be cleared after it was generated and |
| 132 // shown to user. | 132 // shown to user. |
| 133 virtual void TpmClearStoredPassword() = 0; | 133 virtual void TpmClearStoredPassword() = 0; |
| 134 | 134 |
| 135 virtual bool InstallAttributesGet(const std::string& name, |
| 136 std::string* value) = 0; |
| 137 virtual bool InstallAttributesSet(const std::string& name, |
| 138 const std::string& value) = 0; |
| 139 virtual int InstallAttributesCount() = 0; |
| 140 virtual bool InstallAttributesFinalize() = 0; |
| 141 virtual bool InstallAttributesIsReady() = 0; |
| 142 virtual bool InstallAttributesIsSecure() = 0; |
| 143 virtual bool InstallAttributesIsInvalid() = 0; |
| 144 virtual bool InstallAttributesIsFirstInstall() = 0; |
| 145 |
| 135 // Factory function, creates a new instance and returns ownership. | 146 // Factory function, creates a new instance and returns ownership. |
| 136 // For normal usage, access the singleton via CrosLibrary::Get(). | 147 // For normal usage, access the singleton via CrosLibrary::Get(). |
| 137 static CryptohomeLibrary* GetImpl(bool stub); | 148 static CryptohomeLibrary* GetImpl(bool stub); |
| 138 }; | 149 }; |
| 139 | 150 |
| 140 } // namespace chromeos | 151 } // namespace chromeos |
| 141 | 152 |
| 142 #endif // CHROME_BROWSER_CHROMEOS_CROS_CRYPTOHOME_LIBRARY_H_ | 153 #endif // CHROME_BROWSER_CHROMEOS_CROS_CRYPTOHOME_LIBRARY_H_ |
| OLD | NEW |