| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_LOGIN_PARALLEL_AUTHENTICATOR_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_PARALLEL_AUTHENTICATOR_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_PARALLEL_AUTHENTICATOR_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_PARALLEL_AUTHENTICATOR_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 } | 213 } |
| 214 | 214 |
| 215 // Sets an online attemp for testing. | 215 // Sets an online attemp for testing. |
| 216 void set_online_attempt(OnlineAttempt* attempt) { | 216 void set_online_attempt(OnlineAttempt* attempt) { |
| 217 current_online_.reset(attempt); | 217 current_online_.reset(attempt); |
| 218 } | 218 } |
| 219 | 219 |
| 220 // Used for testing to set the expected state of an owner check. | 220 // Used for testing to set the expected state of an owner check. |
| 221 void SetOwnerState(bool owner_check_finished, bool check_result); | 221 void SetOwnerState(bool owner_check_finished, bool check_result); |
| 222 | 222 |
| 223 // If we don't have the system salt yet, loads it from the CryptohomeLibrary. | |
| 224 void LoadSystemSalt(); | |
| 225 // If we don't have supplemental_user_key_ yet, loads it from the NSS DB. | |
| 226 // Returns false if the key can not be loaded/created. | |
| 227 bool LoadSupplementalUserKey(); | |
| 228 | |
| 229 // checks if the current mounted home contains the owner case and either | 223 // checks if the current mounted home contains the owner case and either |
| 230 // continues or fails the log-in. Used for policy lost mitigation "safe-mode". | 224 // continues or fails the log-in. Used for policy lost mitigation "safe-mode". |
| 231 // Returns true if the owner check has been successful or if it is not needed. | 225 // Returns true if the owner check has been successful or if it is not needed. |
| 232 bool VerifyOwner(); | 226 bool VerifyOwner(); |
| 233 | 227 |
| 234 // Handles completion of the ownership check and continues login. | 228 // Handles completion of the ownership check and continues login. |
| 235 void OnOwnershipChecked(DeviceSettingsService::OwnershipStatus status, | 229 void OnOwnershipChecked(DeviceSettingsService::OwnershipStatus status, |
| 236 bool is_owner); | 230 bool is_owner); |
| 237 | 231 |
| 238 // Records OAuth1 access token verification failure for |user_account|. | 232 // Records OAuth1 access token verification failure for |user_account|. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 267 | 261 |
| 268 // True if we use OAuth-based authentication flow. | 262 // True if we use OAuth-based authentication flow. |
| 269 bool using_oauth_; | 263 bool using_oauth_; |
| 270 | 264 |
| 271 DISALLOW_COPY_AND_ASSIGN(ParallelAuthenticator); | 265 DISALLOW_COPY_AND_ASSIGN(ParallelAuthenticator); |
| 272 }; | 266 }; |
| 273 | 267 |
| 274 } // namespace chromeos | 268 } // namespace chromeos |
| 275 | 269 |
| 276 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_PARALLEL_AUTHENTICATOR_H_ | 270 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_PARALLEL_AUTHENTICATOR_H_ |
| OLD | NEW |