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 10 matching lines...) Expand all Loading... | |
21 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" | 21 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" |
22 #include "chrome/browser/chromeos/login/screen_manager.h" | 22 #include "chrome/browser/chromeos/login/screen_manager.h" |
23 #include "chrome/browser/chromeos/login/screens/base_screen_delegate.h" | 23 #include "chrome/browser/chromeos/login/screens/base_screen_delegate.h" |
24 #include "chrome/browser/chromeos/login/screens/controller_pairing_screen.h" | 24 #include "chrome/browser/chromeos/login/screens/controller_pairing_screen.h" |
25 #include "chrome/browser/chromeos/login/screens/eula_screen.h" | 25 #include "chrome/browser/chromeos/login/screens/eula_screen.h" |
26 #include "chrome/browser/chromeos/login/screens/hid_detection_screen.h" | 26 #include "chrome/browser/chromeos/login/screens/hid_detection_screen.h" |
27 #include "chrome/browser/chromeos/login/screens/host_pairing_screen.h" | 27 #include "chrome/browser/chromeos/login/screens/host_pairing_screen.h" |
28 #include "chrome/browser/chromeos/login/screens/network_screen.h" | 28 #include "chrome/browser/chromeos/login/screens/network_screen.h" |
29 #include "chrome/browser/chromeos/login/screens/reset_screen.h" | 29 #include "chrome/browser/chromeos/login/screens/reset_screen.h" |
30 #include "chrome/browser/chromeos/policy/enrollment_config.h" | 30 #include "chrome/browser/chromeos/policy/enrollment_config.h" |
31 #include "chromeos/network/network_handler_callbacks.h" | |
achuithb
2017/05/25 19:25:53
Forward declare
xdai1
2017/06/08 22:18:41
It's not used. Removed the include file.
| |
31 | 32 |
32 class PrefService; | 33 class PrefService; |
33 | 34 |
34 namespace pairing_chromeos { | 35 namespace pairing_chromeos { |
35 class ControllerPairingController; | 36 class ControllerPairingController; |
36 class HostPairingController; | 37 class HostPairingController; |
37 class SharkConnectionListener; | 38 class SharkConnectionListener; |
38 } | 39 } |
39 | 40 |
40 namespace chromeos { | 41 namespace chromeos { |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
295 // running remora OOBE. | 296 // running remora OOBE. |
296 void MaybeStartListeningForSharkConnection(); | 297 void MaybeStartListeningForSharkConnection(); |
297 | 298 |
298 // Called when a connection to controller has been established. Wizard | 299 // Called when a connection to controller has been established. Wizard |
299 // controller takes the ownership of |pairing_controller| after that call. | 300 // controller takes the ownership of |pairing_controller| after that call. |
300 void OnSharkConnected(std::unique_ptr<pairing_chromeos::HostPairingController> | 301 void OnSharkConnected(std::unique_ptr<pairing_chromeos::HostPairingController> |
301 pairing_controller); | 302 pairing_controller); |
302 | 303 |
303 // Callback functions for AddNetworkRequested(). | 304 // Callback functions for AddNetworkRequested(). |
304 void OnSetHostNetworkSuccessful(); | 305 void OnSetHostNetworkSuccessful(); |
305 void OnSetHostNetworkFailed(); | 306 void OnSetHostNetworkFailed( |
307 const std::string& error_name, | |
308 std::unique_ptr<base::DictionaryValue> error_data); | |
306 | 309 |
307 // Start the enrollment screen using the config from | 310 // Start the enrollment screen using the config from |
308 // |prescribed_enrollment_config_|. If |force_interactive| is true, | 311 // |prescribed_enrollment_config_|. If |force_interactive| is true, |
309 // the user will be presented with a manual enrollment screen requiring | 312 // the user will be presented with a manual enrollment screen requiring |
310 // Gaia credentials. If it is false, the screen may return after trying | 313 // Gaia credentials. If it is false, the screen may return after trying |
311 // attestation-based enrollment if appropriate. | 314 // attestation-based enrollment if appropriate. |
312 void StartEnrollmentScreen(bool force_interactive); | 315 void StartEnrollmentScreen(bool force_interactive); |
313 | 316 |
314 // Returns auto enrollment controller (lazily initializes one if it doesn't | 317 // Returns auto enrollment controller (lazily initializes one if it doesn't |
315 // exist already). | 318 // exist already). |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
426 BaseScreen* hid_screen_ = nullptr; | 429 BaseScreen* hid_screen_ = nullptr; |
427 | 430 |
428 base::WeakPtrFactory<WizardController> weak_factory_; | 431 base::WeakPtrFactory<WizardController> weak_factory_; |
429 | 432 |
430 DISALLOW_COPY_AND_ASSIGN(WizardController); | 433 DISALLOW_COPY_AND_ASSIGN(WizardController); |
431 }; | 434 }; |
432 | 435 |
433 } // namespace chromeos | 436 } // namespace chromeos |
434 | 437 |
435 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ | 438 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_CONTROLLER_H_ |
OLD | NEW |