| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_GOOGLE_AUTHENTICATOR_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_GOOGLE_AUTHENTICATOR_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_GOOGLE_AUTHENTICATOR_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_GOOGLE_AUTHENTICATOR_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 void CheckOffline(const LoginFailure& error); | 78 void CheckOffline(const LoginFailure& error); |
| 79 void CheckLocalaccount(const LoginFailure& error); | 79 void CheckLocalaccount(const LoginFailure& error); |
| 80 void OnLoginFailure(const LoginFailure& error); | 80 void OnLoginFailure(const LoginFailure& error); |
| 81 | 81 |
| 82 // Call these methods on the UI thread. | 82 // Call these methods on the UI thread. |
| 83 void RecoverEncryptedData( | 83 void RecoverEncryptedData( |
| 84 const std::string& old_password, | 84 const std::string& old_password, |
| 85 const GaiaAuthConsumer::ClientLoginResult& credentials); | 85 const GaiaAuthConsumer::ClientLoginResult& credentials); |
| 86 void ResyncEncryptedData( | 86 void ResyncEncryptedData( |
| 87 const GaiaAuthConsumer::ClientLoginResult& credentials); | 87 const GaiaAuthConsumer::ClientLoginResult& credentials); |
| 88 void RetryAuth(Profile* profile, |
| 89 const std::string& username, |
| 90 const std::string& password, |
| 91 const std::string& login_token, |
| 92 const std::string& login_captcha); |
| 88 | 93 |
| 89 // Callbacks from GaiaAuthenticator2 | 94 // Callbacks from GaiaAuthenticator2 |
| 90 virtual void OnClientLoginFailure( | 95 virtual void OnClientLoginFailure( |
| 91 const GoogleServiceAuthError& error); | 96 const GoogleServiceAuthError& error); |
| 92 virtual void OnClientLoginSuccess( | 97 virtual void OnClientLoginSuccess( |
| 93 const GaiaAuthConsumer::ClientLoginResult& credentials); | 98 const GaiaAuthConsumer::ClientLoginResult& credentials); |
| 94 | 99 |
| 95 private: | 100 private: |
| 96 | 101 |
| 97 // If we don't have the system salt yet, loads it from the CryptohomeLibrary. | 102 // If we don't have the system salt yet, loads it from the CryptohomeLibrary. |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 FRIEND_TEST_ALL_PREFIXES(GoogleAuthenticatorTest, LoginNetFailure); | 205 FRIEND_TEST_ALL_PREFIXES(GoogleAuthenticatorTest, LoginNetFailure); |
| 201 FRIEND_TEST_ALL_PREFIXES(GoogleAuthenticatorTest, LoginDenied); | 206 FRIEND_TEST_ALL_PREFIXES(GoogleAuthenticatorTest, LoginDenied); |
| 202 FRIEND_TEST_ALL_PREFIXES(GoogleAuthenticatorTest, TwoFactorLogin); | 207 FRIEND_TEST_ALL_PREFIXES(GoogleAuthenticatorTest, TwoFactorLogin); |
| 203 | 208 |
| 204 DISALLOW_COPY_AND_ASSIGN(GoogleAuthenticator); | 209 DISALLOW_COPY_AND_ASSIGN(GoogleAuthenticator); |
| 205 }; | 210 }; |
| 206 | 211 |
| 207 } // namespace chromeos | 212 } // namespace chromeos |
| 208 | 213 |
| 209 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_GOOGLE_AUTHENTICATOR_H_ | 214 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_GOOGLE_AUTHENTICATOR_H_ |
| OLD | NEW |