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_LOGIN_PERFORMER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_PERFORMER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_PERFORMER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_PERFORMER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 // Default performer. Will be used by ScreenLocker. | 188 // Default performer. Will be used by ScreenLocker. |
189 static LoginPerformer* default_performer_; | 189 static LoginPerformer* default_performer_; |
190 | 190 |
191 // Used for logging in. | 191 // Used for logging in. |
192 scoped_refptr<Authenticator> authenticator_; | 192 scoped_refptr<Authenticator> authenticator_; |
193 | 193 |
194 // Used to make auxiliary online check. | 194 // Used to make auxiliary online check. |
195 OnlineAttemptHost online_attempt_host_; | 195 OnlineAttemptHost online_attempt_host_; |
196 | 196 |
197 // Represents last login failure that was encountered when communicating to | 197 // Represents last login failure that was encountered when communicating to |
198 // sign-in server. LoginFailure.None() by default. | 198 // sign-in server. LoginFailure.LoginFailureNone() by default. |
199 LoginFailure last_login_failure_; | 199 LoginFailure last_login_failure_; |
200 | 200 |
201 // Username and password for the current login attempt. | 201 // Username and password for the current login attempt. |
202 std::string username_; | 202 std::string username_; |
203 std::string password_; | 203 std::string password_; |
204 | 204 |
205 // Notifications receiver. | 205 // Notifications receiver. |
206 Delegate* delegate_; | 206 Delegate* delegate_; |
207 | 207 |
208 // True if password change has been detected. | 208 // True if password change has been detected. |
(...skipping 17 matching lines...) Expand all Loading... |
226 AuthorizationMode auth_mode_; | 226 AuthorizationMode auth_mode_; |
227 | 227 |
228 base::WeakPtrFactory<LoginPerformer> weak_factory_; | 228 base::WeakPtrFactory<LoginPerformer> weak_factory_; |
229 | 229 |
230 DISALLOW_COPY_AND_ASSIGN(LoginPerformer); | 230 DISALLOW_COPY_AND_ASSIGN(LoginPerformer); |
231 }; | 231 }; |
232 | 232 |
233 } // namespace chromeos | 233 } // namespace chromeos |
234 | 234 |
235 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_PERFORMER_H_ | 235 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_PERFORMER_H_ |
OLD | NEW |