| 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 <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 // Called when a connection to controller has been established. Wizard | 326 // Called when a connection to controller has been established. Wizard |
| 327 // controller takes the ownership of |pairing_controller| after that call. | 327 // controller takes the ownership of |pairing_controller| after that call. |
| 328 void OnSharkConnected(std::unique_ptr<pairing_chromeos::HostPairingController> | 328 void OnSharkConnected(std::unique_ptr<pairing_chromeos::HostPairingController> |
| 329 pairing_controller); | 329 pairing_controller); |
| 330 | 330 |
| 331 // Callback functions for AddNetworkRequested(). | 331 // Callback functions for AddNetworkRequested(). |
| 332 void OnSetHostNetworkSuccessful(); | 332 void OnSetHostNetworkSuccessful(); |
| 333 void OnSetHostNetworkFailed(); | 333 void OnSetHostNetworkFailed(); |
| 334 | 334 |
| 335 // Start the enrollment screen using the config from | 335 // Start the enrollment screen using the config from |
| 336 // |prescribed_enrollment_config_|. | 336 // |prescribed_enrollment_config_|. If |force_interactive| is true, |
| 337 void StartEnrollmentScreen(); | 337 // the user will be presented with a manual enrollment screen requiring |
| 338 // Gaia credentials. If it is false, the screen may return after trying |
| 339 // attestation-based enrollment if appropriate. |
| 340 void StartEnrollmentScreen(bool force_interactive); |
| 338 | 341 |
| 339 // Whether to skip any screens that may normally be shown after login | 342 // Whether to skip any screens that may normally be shown after login |
| 340 // (registration, Terms of Service, user image selection). | 343 // (registration, Terms of Service, user image selection). |
| 341 static bool skip_post_login_screens_; | 344 static bool skip_post_login_screens_; |
| 342 | 345 |
| 343 static bool zero_delay_enabled_; | 346 static bool zero_delay_enabled_; |
| 344 | 347 |
| 345 // Screen that's currently active. | 348 // Screen that's currently active. |
| 346 BaseScreen* current_screen_ = nullptr; | 349 BaseScreen* current_screen_ = nullptr; |
| 347 | 350 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 443 BaseScreen* hid_screen_ = nullptr; | 446 BaseScreen* hid_screen_ = nullptr; |
| 444 | 447 |
| 445 base::WeakPtrFactory<WizardController> weak_factory_; | 448 base::WeakPtrFactory<WizardController> weak_factory_; |
| 446 | 449 |
| 447 DISALLOW_COPY_AND_ASSIGN(WizardController); | 450 DISALLOW_COPY_AND_ASSIGN(WizardController); |
| 448 }; | 451 }; |
| 449 | 452 |
| 450 } // namespace chromeos | 453 } // namespace chromeos |
| 451 | 454 |
| 452 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ | 455 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ |
| OLD | NEW |