| 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_EXISTING_USER_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 void MigrateUserData(const std::string& old_password) override; | 91 void MigrateUserData(const std::string& old_password) override; |
| 92 void OnSigninScreenReady() override; | 92 void OnSigninScreenReady() override; |
| 93 void OnGaiaScreenReady() override; | 93 void OnGaiaScreenReady() override; |
| 94 void OnStartEnterpriseEnrollment() override; | 94 void OnStartEnterpriseEnrollment() override; |
| 95 void OnStartEnableDebuggingScreen() override; | 95 void OnStartEnableDebuggingScreen() override; |
| 96 void OnStartKioskEnableScreen() override; | 96 void OnStartKioskEnableScreen() override; |
| 97 void OnStartKioskAutolaunchScreen() override; | 97 void OnStartKioskAutolaunchScreen() override; |
| 98 void ResetAutoLoginTimer() override; | 98 void ResetAutoLoginTimer() override; |
| 99 void ResyncUserData() override; | 99 void ResyncUserData() override; |
| 100 void SetDisplayEmail(const std::string& email) override; | 100 void SetDisplayEmail(const std::string& email) override; |
| 101 void SetDisplayAndGivenName(const std::string& display_name, |
| 102 const std::string& given_name) override; |
| 101 void ShowWrongHWIDScreen() override; | 103 void ShowWrongHWIDScreen() override; |
| 102 void Signout() override; | 104 void Signout() override; |
| 103 bool IsUserWhitelisted(const AccountId& account_id) override; | 105 bool IsUserWhitelisted(const AccountId& account_id) override; |
| 104 | 106 |
| 105 // content::NotificationObserver implementation. | 107 // content::NotificationObserver implementation. |
| 106 void Observe(int type, | 108 void Observe(int type, |
| 107 const content::NotificationSource& source, | 109 const content::NotificationSource& source, |
| 108 const content::NotificationDetails& details) override; | 110 const content::NotificationDetails& details) override; |
| 109 | 111 |
| 110 // ArcKioskAppManager::ArcKioskAppManagerObserver overrides. | 112 // ArcKioskAppManager::ArcKioskAppManagerObserver overrides. |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 const UserContext& user_context); | 256 const UserContext& user_context); |
| 255 | 257 |
| 256 // Callback invoked when |oauth2_token_initializer_| has finished. | 258 // Callback invoked when |oauth2_token_initializer_| has finished. |
| 257 void OnOAuth2TokensFetched(bool success, const UserContext& user_context); | 259 void OnOAuth2TokensFetched(bool success, const UserContext& user_context); |
| 258 | 260 |
| 259 // Callback invoked when |token_handle_util_| finishes token check. | 261 // Callback invoked when |token_handle_util_| finishes token check. |
| 260 void OnTokenHandleChecked( | 262 void OnTokenHandleChecked( |
| 261 const AccountId&, | 263 const AccountId&, |
| 262 TokenHandleUtil::TokenHandleStatus token_handle_status); | 264 TokenHandleUtil::TokenHandleStatus token_handle_status); |
| 263 | 265 |
| 266 // Clear the recorded displayed email, displayed name, given name so it won't |
| 267 // affect any future attempts. |
| 268 void ClearRecordedNames(); |
| 269 |
| 264 // Public session auto-login timer. | 270 // Public session auto-login timer. |
| 265 std::unique_ptr<base::OneShotTimer> auto_login_timer_; | 271 std::unique_ptr<base::OneShotTimer> auto_login_timer_; |
| 266 | 272 |
| 267 // Auto-login timeout, in milliseconds. | 273 // Auto-login timeout, in milliseconds. |
| 268 int auto_login_delay_; | 274 int auto_login_delay_; |
| 269 | 275 |
| 270 // AccountId for public session auto-login. | 276 // AccountId for public session auto-login. |
| 271 AccountId public_session_auto_login_account_id_ = EmptyAccountId(); | 277 AccountId public_session_auto_login_account_id_ = EmptyAccountId(); |
| 272 | 278 |
| 273 // AccountId for ARC kiosk auto-login. | 279 // AccountId for ARC kiosk auto-login. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 302 | 308 |
| 303 // URL to append to start Guest mode with. | 309 // URL to append to start Guest mode with. |
| 304 GURL guest_mode_url_; | 310 GURL guest_mode_url_; |
| 305 | 311 |
| 306 // Used for notifications during the login process. | 312 // Used for notifications during the login process. |
| 307 content::NotificationRegistrar registrar_; | 313 content::NotificationRegistrar registrar_; |
| 308 | 314 |
| 309 // The displayed email for the next login attempt set by |SetDisplayEmail|. | 315 // The displayed email for the next login attempt set by |SetDisplayEmail|. |
| 310 std::string display_email_; | 316 std::string display_email_; |
| 311 | 317 |
| 318 // The displayed name for the next login attempt set by |
| 319 // |SetDisplayAndGivenName|. |
| 320 base::string16 display_name_; |
| 321 |
| 322 // The given name for the next login attempt set by |SetDisplayAndGivenName|. |
| 323 base::string16 given_name_; |
| 324 |
| 312 // Whether login attempt is running. | 325 // Whether login attempt is running. |
| 313 bool is_login_in_progress_ = false; | 326 bool is_login_in_progress_ = false; |
| 314 | 327 |
| 315 // True if password has been changed for user who is completing sign in. | 328 // True if password has been changed for user who is completing sign in. |
| 316 // Set in OnLoginSuccess. Before that use LoginPerformer::password_changed(). | 329 // Set in OnLoginSuccess. Before that use LoginPerformer::password_changed(). |
| 317 bool password_changed_ = false; | 330 bool password_changed_ = false; |
| 318 | 331 |
| 319 // Set in OnLoginSuccess. Before that use LoginPerformer::auth_mode(). | 332 // Set in OnLoginSuccess. Before that use LoginPerformer::auth_mode(). |
| 320 // Initialized with AUTH_MODE_EXTENSION as more restricted mode. | 333 // Initialized with AUTH_MODE_EXTENSION as more restricted mode. |
| 321 LoginPerformer::AuthorizationMode auth_mode_ = | 334 LoginPerformer::AuthorizationMode auth_mode_ = |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 | 374 |
| 362 // Factory of callbacks. | 375 // Factory of callbacks. |
| 363 base::WeakPtrFactory<ExistingUserController> weak_factory_; | 376 base::WeakPtrFactory<ExistingUserController> weak_factory_; |
| 364 | 377 |
| 365 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); | 378 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); |
| 366 }; | 379 }; |
| 367 | 380 |
| 368 } // namespace chromeos | 381 } // namespace chromeos |
| 369 | 382 |
| 370 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ | 383 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ |
| OLD | NEW |