| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 // BaseScreen implementation: | 56 // BaseScreen implementation: |
| 57 void Show() override; | 57 void Show() override; |
| 58 void Hide() override; | 58 void Hide() override; |
| 59 | 59 |
| 60 // EnrollmentScreenActor::Controller implementation: | 60 // EnrollmentScreenActor::Controller implementation: |
| 61 void OnLoginDone(const std::string& user, | 61 void OnLoginDone(const std::string& user, |
| 62 const std::string& auth_code) override; | 62 const std::string& auth_code) override; |
| 63 void OnRetry() override; | 63 void OnRetry() override; |
| 64 void OnCancel() override; | 64 void OnCancel() override; |
| 65 void OnConfirmationClosed() override; | 65 void OnConfirmationClosed() override; |
| 66 void OnAdJoined(const std::string& realm) override; | |
| 67 void OnDeviceAttributeProvided(const std::string& asset_id, | 66 void OnDeviceAttributeProvided(const std::string& asset_id, |
| 68 const std::string& location) override; | 67 const std::string& location) override; |
| 69 | 68 |
| 70 // EnterpriseEnrollmentHelper::EnrollmentStatusConsumer implementation: | 69 // EnterpriseEnrollmentHelper::EnrollmentStatusConsumer implementation: |
| 71 void OnAuthError(const GoogleServiceAuthError& error) override; | 70 void OnAuthError(const GoogleServiceAuthError& error) override; |
| 72 void OnEnrollmentError(policy::EnrollmentStatus status) override; | 71 void OnEnrollmentError(policy::EnrollmentStatus status) override; |
| 73 void OnOtherError(EnterpriseEnrollmentHelper::OtherError error) override; | 72 void OnOtherError(EnterpriseEnrollmentHelper::OtherError error) override; |
| 74 void OnDeviceEnrolled(const std::string& additional_token) override; | 73 void OnDeviceEnrolled(const std::string& additional_token) override; |
| 75 void OnDeviceAttributeUploadCompleted(bool success) override; | 74 void OnDeviceAttributeUploadCompleted(bool success) override; |
| 76 void OnDeviceAttributeUpdatePermission(bool granted) override; | 75 void OnDeviceAttributeUpdatePermission(bool granted) override; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 | 145 |
| 147 pairing_chromeos::ControllerPairingController* shark_controller_ = nullptr; | 146 pairing_chromeos::ControllerPairingController* shark_controller_ = nullptr; |
| 148 | 147 |
| 149 EnrollmentScreenActor* actor_; | 148 EnrollmentScreenActor* actor_; |
| 150 policy::EnrollmentConfig config_; | 149 policy::EnrollmentConfig config_; |
| 151 policy::EnrollmentConfig enrollment_config_; | 150 policy::EnrollmentConfig enrollment_config_; |
| 152 Auth current_auth_ = AUTH_OAUTH; | 151 Auth current_auth_ = AUTH_OAUTH; |
| 153 Auth last_auth_ = AUTH_OAUTH; | 152 Auth last_auth_ = AUTH_OAUTH; |
| 154 bool enrollment_failed_once_ = false; | 153 bool enrollment_failed_once_ = false; |
| 155 std::string enrolling_user_domain_; | 154 std::string enrolling_user_domain_; |
| 156 std::string auth_code_; | |
| 157 std::unique_ptr<base::ElapsedTimer> elapsed_timer_; | 155 std::unique_ptr<base::ElapsedTimer> elapsed_timer_; |
| 158 std::unique_ptr<EnterpriseEnrollmentHelper> enrollment_helper_; | 156 std::unique_ptr<EnterpriseEnrollmentHelper> enrollment_helper_; |
| 159 base::WeakPtrFactory<EnrollmentScreen> weak_ptr_factory_; | 157 base::WeakPtrFactory<EnrollmentScreen> weak_ptr_factory_; |
| 160 | 158 |
| 161 DISALLOW_COPY_AND_ASSIGN(EnrollmentScreen); | 159 DISALLOW_COPY_AND_ASSIGN(EnrollmentScreen); |
| 162 }; | 160 }; |
| 163 | 161 |
| 164 } // namespace chromeos | 162 } // namespace chromeos |
| 165 | 163 |
| 166 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_H_ | 164 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_H_ |
| OLD | NEW |