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