| 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_ENROLLMENT_ENROLLMENT_SCREEN_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // Setup how this screen will handle enrollment. | 49 // Setup how this screen will handle enrollment. |
| 50 // |shark_controller| is an interface that is used to communicate with a | 50 // |shark_controller| is an interface that is used to communicate with a |
| 51 // remora device or a slave device for remote enrollment. | 51 // remora device or a slave device for remote enrollment. |
| 52 void SetParameters( | 52 void SetParameters( |
| 53 const policy::EnrollmentConfig& enrollment_config, | 53 const policy::EnrollmentConfig& enrollment_config, |
| 54 pairing_chromeos::ControllerPairingController* shark_controller); | 54 pairing_chromeos::ControllerPairingController* shark_controller); |
| 55 | 55 |
| 56 // BaseScreen implementation: | 56 // BaseScreen implementation: |
| 57 void Show() override; | 57 void Show() override; |
| 58 void Hide() override; | 58 void Hide() override; |
| 59 std::string GetName() const override; | |
| 60 | 59 |
| 61 // EnrollmentScreenActor::Controller implementation: | 60 // EnrollmentScreenActor::Controller implementation: |
| 62 void OnLoginDone(const std::string& user, | 61 void OnLoginDone(const std::string& user, |
| 63 const std::string& auth_code) override; | 62 const std::string& auth_code) override; |
| 64 void OnRetry() override; | 63 void OnRetry() override; |
| 65 void OnCancel() override; | 64 void OnCancel() override; |
| 66 void OnConfirmationClosed() override; | 65 void OnConfirmationClosed() override; |
| 67 void OnAdJoined(const std::string& realm) override; | 66 void OnAdJoined(const std::string& realm) override; |
| 68 void OnDeviceAttributeProvided(const std::string& asset_id, | 67 void OnDeviceAttributeProvided(const std::string& asset_id, |
| 69 const std::string& location) override; | 68 const std::string& location) override; |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 std::unique_ptr<base::ElapsedTimer> elapsed_timer_; | 157 std::unique_ptr<base::ElapsedTimer> elapsed_timer_; |
| 159 std::unique_ptr<EnterpriseEnrollmentHelper> enrollment_helper_; | 158 std::unique_ptr<EnterpriseEnrollmentHelper> enrollment_helper_; |
| 160 base::WeakPtrFactory<EnrollmentScreen> weak_ptr_factory_; | 159 base::WeakPtrFactory<EnrollmentScreen> weak_ptr_factory_; |
| 161 | 160 |
| 162 DISALLOW_COPY_AND_ASSIGN(EnrollmentScreen); | 161 DISALLOW_COPY_AND_ASSIGN(EnrollmentScreen); |
| 163 }; | 162 }; |
| 164 | 163 |
| 165 } // namespace chromeos | 164 } // namespace chromeos |
| 166 | 165 |
| 167 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_H_ | 166 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_H_ |
| OLD | NEW |