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_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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 const GaiaAuthConsumer::ClientLoginResult& credentials) OVERRIDE; | 110 const GaiaAuthConsumer::ClientLoginResult& credentials) OVERRIDE; |
111 virtual void RetryAuth(Profile* profile, | 111 virtual void RetryAuth(Profile* profile, |
112 const std::string& username, | 112 const std::string& username, |
113 const std::string& password, | 113 const std::string& password, |
114 const std::string& login_token, | 114 const std::string& login_token, |
115 const std::string& login_captcha) OVERRIDE; | 115 const std::string& login_captcha) OVERRIDE; |
116 virtual void VerifyOAuth1AccessToken(const std::string& auth1_token, | 116 virtual void VerifyOAuth1AccessToken(const std::string& auth1_token, |
117 const std::string& oauth1_secret) OVERRIDE; | 117 const std::string& oauth1_secret) OVERRIDE; |
118 virtual std::string EncryptToken(const std::string& token) OVERRIDE; | 118 virtual std::string EncryptToken(const std::string& token) OVERRIDE; |
119 virtual std::string DecryptToken(const std::string& encrypted_token) OVERRIDE; | 119 virtual std::string DecryptToken(const std::string& encrypted_token) OVERRIDE; |
120 virtual std::string DecryptLegacyToken( | |
121 const std::string& encrypted_token) OVERRIDE; | |
122 | 120 |
123 // Callbacks from GaiaAuthFetcher | 121 // Callbacks from GaiaAuthFetcher |
124 virtual void OnClientLoginFailure( | 122 virtual void OnClientLoginFailure( |
125 const GoogleServiceAuthError& error) OVERRIDE; | 123 const GoogleServiceAuthError& error) OVERRIDE; |
126 virtual void OnClientLoginSuccess( | 124 virtual void OnClientLoginSuccess( |
127 const GaiaAuthConsumer::ClientLoginResult& credentials) OVERRIDE; | 125 const GaiaAuthConsumer::ClientLoginResult& credentials) OVERRIDE; |
128 | 126 |
129 private: | 127 private: |
130 | 128 |
131 // If we don't have the system salt yet, loads it from the CryptohomeLibrary. | 129 // If we don't have the system salt yet, loads it from the CryptohomeLibrary. |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 FRIEND_TEST_ALL_PREFIXES(GoogleAuthenticatorTest, LoginNetFailure); | 243 FRIEND_TEST_ALL_PREFIXES(GoogleAuthenticatorTest, LoginNetFailure); |
246 FRIEND_TEST_ALL_PREFIXES(GoogleAuthenticatorTest, LoginDenied); | 244 FRIEND_TEST_ALL_PREFIXES(GoogleAuthenticatorTest, LoginDenied); |
247 FRIEND_TEST_ALL_PREFIXES(GoogleAuthenticatorTest, TwoFactorLogin); | 245 FRIEND_TEST_ALL_PREFIXES(GoogleAuthenticatorTest, TwoFactorLogin); |
248 | 246 |
249 DISALLOW_COPY_AND_ASSIGN(GoogleAuthenticator); | 247 DISALLOW_COPY_AND_ASSIGN(GoogleAuthenticator); |
250 }; | 248 }; |
251 | 249 |
252 } // namespace chromeos | 250 } // namespace chromeos |
253 | 251 |
254 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_GOOGLE_AUTHENTICATOR_H_ | 252 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_GOOGLE_AUTHENTICATOR_H_ |
OLD | NEW |