| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 const SigninSpecifics& specifics); | 233 const SigninSpecifics& specifics); |
| 234 | 234 |
| 235 // Callback invoked when |bootstrap_user_context_initializer_| has finished. | 235 // Callback invoked when |bootstrap_user_context_initializer_| has finished. |
| 236 void OnBootstrapUserContextInitialized(bool success, | 236 void OnBootstrapUserContextInitialized(bool success, |
| 237 const UserContext& user_context); | 237 const UserContext& user_context); |
| 238 | 238 |
| 239 // Callback invoked when |oauth2_token_initializer_| has finished. | 239 // Callback invoked when |oauth2_token_initializer_| has finished. |
| 240 void OnOAuth2TokensFetched(bool success, const UserContext& user_context); | 240 void OnOAuth2TokensFetched(bool success, const UserContext& user_context); |
| 241 | 241 |
| 242 // Public session auto-login timer. | 242 // Public session auto-login timer. |
| 243 scoped_ptr<base::OneShotTimer<ExistingUserController> > auto_login_timer_; | 243 scoped_ptr<base::OneShotTimer> auto_login_timer_; |
| 244 | 244 |
| 245 // Public session auto-login timeout, in milliseconds. | 245 // Public session auto-login timeout, in milliseconds. |
| 246 int public_session_auto_login_delay_; | 246 int public_session_auto_login_delay_; |
| 247 | 247 |
| 248 // Username for public session auto-login. | 248 // Username for public session auto-login. |
| 249 std::string public_session_auto_login_username_; | 249 std::string public_session_auto_login_username_; |
| 250 | 250 |
| 251 // Used to execute login operations. | 251 // Used to execute login operations. |
| 252 scoped_ptr<LoginPerformer> login_performer_; | 252 scoped_ptr<LoginPerformer> login_performer_; |
| 253 | 253 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 // Initialized with AUTH_MODE_EXTENSION as more restricted mode. | 295 // Initialized with AUTH_MODE_EXTENSION as more restricted mode. |
| 296 LoginPerformer::AuthorizationMode auth_mode_; | 296 LoginPerformer::AuthorizationMode auth_mode_; |
| 297 // Whether the sign-in UI is finished loading. | 297 // Whether the sign-in UI is finished loading. |
| 298 bool signin_screen_ready_; | 298 bool signin_screen_ready_; |
| 299 | 299 |
| 300 // Time when the signin screen was first displayed. Used to measure the time | 300 // Time when the signin screen was first displayed. Used to measure the time |
| 301 // from showing the screen until a successful login is performed. | 301 // from showing the screen until a successful login is performed. |
| 302 base::Time time_init_; | 302 base::Time time_init_; |
| 303 | 303 |
| 304 // Timer for the interval to wait for the reboot after TPM error UI was shown. | 304 // Timer for the interval to wait for the reboot after TPM error UI was shown. |
| 305 base::OneShotTimer<ExistingUserController> reboot_timer_; | 305 base::OneShotTimer reboot_timer_; |
| 306 | 306 |
| 307 scoped_ptr<login::NetworkStateHelper> network_state_helper_; | 307 scoped_ptr<login::NetworkStateHelper> network_state_helper_; |
| 308 | 308 |
| 309 scoped_ptr<CrosSettings::ObserverSubscription> show_user_names_subscription_; | 309 scoped_ptr<CrosSettings::ObserverSubscription> show_user_names_subscription_; |
| 310 scoped_ptr<CrosSettings::ObserverSubscription> allow_new_user_subscription_; | 310 scoped_ptr<CrosSettings::ObserverSubscription> allow_new_user_subscription_; |
| 311 scoped_ptr<CrosSettings::ObserverSubscription> | 311 scoped_ptr<CrosSettings::ObserverSubscription> |
| 312 allow_supervised_user_subscription_; | 312 allow_supervised_user_subscription_; |
| 313 scoped_ptr<CrosSettings::ObserverSubscription> allow_guest_subscription_; | 313 scoped_ptr<CrosSettings::ObserverSubscription> allow_guest_subscription_; |
| 314 scoped_ptr<CrosSettings::ObserverSubscription> users_subscription_; | 314 scoped_ptr<CrosSettings::ObserverSubscription> users_subscription_; |
| 315 scoped_ptr<CrosSettings::ObserverSubscription> | 315 scoped_ptr<CrosSettings::ObserverSubscription> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 326 | 326 |
| 327 // Factory of callbacks. | 327 // Factory of callbacks. |
| 328 base::WeakPtrFactory<ExistingUserController> weak_factory_; | 328 base::WeakPtrFactory<ExistingUserController> weak_factory_; |
| 329 | 329 |
| 330 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); | 330 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); |
| 331 }; | 331 }; |
| 332 | 332 |
| 333 } // namespace chromeos | 333 } // namespace chromeos |
| 334 | 334 |
| 335 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ | 335 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ |
| OLD | NEW |