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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 // running remora OOBE. | 309 // running remora OOBE. |
310 void MaybeStartListeningForSharkConnection(); | 310 void MaybeStartListeningForSharkConnection(); |
311 | 311 |
312 // Called when a connection to controller has been established. Wizard | 312 // Called when a connection to controller has been established. Wizard |
313 // controller takes the ownership of |pairing_controller| after that call. | 313 // controller takes the ownership of |pairing_controller| after that call. |
314 void OnSharkConnected(std::unique_ptr<pairing_chromeos::HostPairingController> | 314 void OnSharkConnected(std::unique_ptr<pairing_chromeos::HostPairingController> |
315 pairing_controller); | 315 pairing_controller); |
316 | 316 |
317 // Callback functions for AddNetworkRequested(). | 317 // Callback functions for AddNetworkRequested(). |
318 void OnSetHostNetworkSuccessful(); | 318 void OnSetHostNetworkSuccessful(); |
319 void OnSetHostNetworkFailed(); | 319 void OnSetHostNetworkFailed( |
| 320 const std::string& error_name, |
| 321 std::unique_ptr<base::DictionaryValue> error_data); |
320 | 322 |
321 // Start the enrollment screen using the config from | 323 // Start the enrollment screen using the config from |
322 // |prescribed_enrollment_config_|. If |force_interactive| is true, | 324 // |prescribed_enrollment_config_|. If |force_interactive| is true, |
323 // the user will be presented with a manual enrollment screen requiring | 325 // the user will be presented with a manual enrollment screen requiring |
324 // Gaia credentials. If it is false, the screen may return after trying | 326 // Gaia credentials. If it is false, the screen may return after trying |
325 // attestation-based enrollment if appropriate. | 327 // attestation-based enrollment if appropriate. |
326 void StartEnrollmentScreen(bool force_interactive); | 328 void StartEnrollmentScreen(bool force_interactive); |
327 | 329 |
328 // Returns auto enrollment controller (lazily initializes one if it doesn't | 330 // Returns auto enrollment controller (lazily initializes one if it doesn't |
329 // exist already). | 331 // exist already). |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 BaseScreen* hid_screen_ = nullptr; | 444 BaseScreen* hid_screen_ = nullptr; |
443 | 445 |
444 base::WeakPtrFactory<WizardController> weak_factory_; | 446 base::WeakPtrFactory<WizardController> weak_factory_; |
445 | 447 |
446 DISALLOW_COPY_AND_ASSIGN(WizardController); | 448 DISALLOW_COPY_AND_ASSIGN(WizardController); |
447 }; | 449 }; |
448 | 450 |
449 } // namespace chromeos | 451 } // namespace chromeos |
450 | 452 |
451 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ | 453 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ |
OLD | NEW |