| 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_WIZARD_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 static bool zero_delay_enabled_; | 319 static bool zero_delay_enabled_; |
| 320 | 320 |
| 321 // Screen that's currently active. | 321 // Screen that's currently active. |
| 322 WizardScreen* current_screen_; | 322 WizardScreen* current_screen_; |
| 323 | 323 |
| 324 // Screen that was active before, or NULL for login screen. | 324 // Screen that was active before, or NULL for login screen. |
| 325 WizardScreen* previous_screen_; | 325 WizardScreen* previous_screen_; |
| 326 | 326 |
| 327 std::string username_; | 327 std::string username_; |
| 328 std::string password_; | 328 std::string password_; |
| 329 std::string auth_token_; | |
| 330 | 329 |
| 331 // True if running official BUILD. | 330 // True if running official BUILD. |
| 332 bool is_official_build_; | 331 bool is_official_build_; |
| 333 | 332 |
| 334 // True if full OOBE flow should be shown. | 333 // True if full OOBE flow should be shown. |
| 335 bool is_out_of_box_; | 334 bool is_out_of_box_; |
| 336 | 335 |
| 337 // Value of the screen name that WizardController was started with. | 336 // Value of the screen name that WizardController was started with. |
| 338 std::string first_screen_name_; | 337 std::string first_screen_name_; |
| 339 | 338 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 friend class WizardControllerOobeResumeTest; | 386 friend class WizardControllerOobeResumeTest; |
| 388 friend class WizardInProcessBrowserTest; | 387 friend class WizardInProcessBrowserTest; |
| 389 friend class WizardControllerBrokenLocalStateTest; | 388 friend class WizardControllerBrokenLocalStateTest; |
| 390 | 389 |
| 391 scoped_ptr<AccessibilityStatusSubscription> accessibility_subscription_; | 390 scoped_ptr<AccessibilityStatusSubscription> accessibility_subscription_; |
| 392 | 391 |
| 393 scoped_ptr<SimpleGeolocationProvider> geolocation_provider_; | 392 scoped_ptr<SimpleGeolocationProvider> geolocation_provider_; |
| 394 scoped_ptr<TimeZoneProvider> timezone_provider_; | 393 scoped_ptr<TimeZoneProvider> timezone_provider_; |
| 395 | 394 |
| 396 // Pairing controller for shark devices. | 395 // Pairing controller for shark devices. |
| 397 scoped_ptr<pairing_chromeos::ControllerPairingController> | 396 scoped_ptr<pairing_chromeos::ControllerPairingController> shark_controller_; |
| 398 controller_pairing_controller_; | |
| 399 | 397 |
| 400 // Pairing controller for remora devices. | 398 // Pairing controller for remora devices. |
| 401 scoped_ptr<pairing_chromeos::HostPairingController> host_pairing_controller_; | 399 scoped_ptr<pairing_chromeos::HostPairingController> remora_controller_; |
| 402 | 400 |
| 403 // Maps screen ids to last time of their shows. | 401 // Maps screen ids to last time of their shows. |
| 404 base::hash_map<std::string, base::Time> screen_show_times_; | 402 base::hash_map<std::string, base::Time> screen_show_times_; |
| 405 | 403 |
| 406 // Tests check result of timezone resolve. | 404 // Tests check result of timezone resolve. |
| 407 bool timezone_resolved_; | 405 bool timezone_resolved_; |
| 408 base::Closure on_timezone_resolved_for_testing_; | 406 base::Closure on_timezone_resolved_for_testing_; |
| 409 | 407 |
| 410 // True if shark device initiated connection to this device. | 408 // True if shark device initiated connection to this device. |
| 411 bool shark_controller_detected_; | 409 bool shark_controller_detected_; |
| 412 | 410 |
| 413 // Listens for incoming connection from a shark controller if a regular (not | 411 // Listens for incoming connection from a shark controller if a regular (not |
| 414 // pairing) remora OOBE is active. If connection is established, wizard | 412 // pairing) remora OOBE is active. If connection is established, wizard |
| 415 // conroller swithces to a pairing OOBE. | 413 // conroller swithces to a pairing OOBE. |
| 416 scoped_ptr<pairing_chromeos::SharkConnectionListener> | 414 scoped_ptr<pairing_chromeos::SharkConnectionListener> |
| 417 shark_connection_listener_; | 415 shark_connection_listener_; |
| 418 | 416 |
| 419 base::WeakPtrFactory<WizardController> weak_factory_; | 417 base::WeakPtrFactory<WizardController> weak_factory_; |
| 420 | 418 |
| 421 DISALLOW_COPY_AND_ASSIGN(WizardController); | 419 DISALLOW_COPY_AND_ASSIGN(WizardController); |
| 422 }; | 420 }; |
| 423 | 421 |
| 424 } // namespace chromeos | 422 } // namespace chromeos |
| 425 | 423 |
| 426 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ | 424 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ |
| OLD | NEW |