| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 virtual bool AsyncMountForBwsi(Delegate* callback) = 0; | 68 virtual bool AsyncMountForBwsi(Delegate* callback) = 0; |
| 69 | 69 |
| 70 // Asks cryptohomed to asynchronously try to find the cryptohome for | 70 // Asks cryptohomed to asynchronously try to find the cryptohome for |
| 71 // |user_email| and then nuke it. | 71 // |user_email| and then nuke it. |
| 72 virtual bool AsyncRemove(const std::string& user_email, | 72 virtual bool AsyncRemove(const std::string& user_email, |
| 73 Delegate* callback) = 0; | 73 Delegate* callback) = 0; |
| 74 | 74 |
| 75 // Asks cryptohomed if a drive is currently mounted. | 75 // Asks cryptohomed if a drive is currently mounted. |
| 76 virtual bool IsMounted() = 0; | 76 virtual bool IsMounted() = 0; |
| 77 | 77 |
| 78 // Passes cryptohomed the owner user. It is used to prevent | |
| 79 // deletion of the owner in low disk space cleanup (see above). | |
| 80 virtual bool AsyncSetOwnerUser(const std::string& username, | |
| 81 Delegate* callback) = 0; | |
| 82 | |
| 83 // Wrappers of the functions for working with Tpm. | 78 // Wrappers of the functions for working with Tpm. |
| 84 | 79 |
| 85 // Returns whether Tpm is ready. | 80 // Returns whether Tpm is ready. |
| 86 virtual bool TpmIsReady() = 0; | 81 virtual bool TpmIsReady() = 0; |
| 87 | 82 |
| 88 // Returns whether Tpm is presented and enabled. | 83 // Returns whether Tpm is presented and enabled. |
| 89 virtual bool TpmIsEnabled() = 0; | 84 virtual bool TpmIsEnabled() = 0; |
| 90 | 85 |
| 91 // Returns whether device has already been owned. | 86 // Returns whether device has already been owned. |
| 92 virtual bool TpmIsOwned() = 0; | 87 virtual bool TpmIsOwned() = 0; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 virtual std::string GetSystemSalt() = 0; | 127 virtual std::string GetSystemSalt() = 0; |
| 133 | 128 |
| 134 // Factory function, creates a new instance and returns ownership. | 129 // Factory function, creates a new instance and returns ownership. |
| 135 // For normal usage, access the singleton via CrosLibrary::Get(). | 130 // For normal usage, access the singleton via CrosLibrary::Get(). |
| 136 static CryptohomeLibrary* GetImpl(bool stub); | 131 static CryptohomeLibrary* GetImpl(bool stub); |
| 137 }; | 132 }; |
| 138 | 133 |
| 139 } // namespace chromeos | 134 } // namespace chromeos |
| 140 | 135 |
| 141 #endif // CHROME_BROWSER_CHROMEOS_CROS_CRYPTOHOME_LIBRARY_H_ | 136 #endif // CHROME_BROWSER_CHROMEOS_CROS_CRYPTOHOME_LIBRARY_H_ |
| OLD | NEW |