| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 void OnLicenseTypeSelected(const std::string& license_type) override; | 67 void OnLicenseTypeSelected(const std::string& license_type) override; |
| 68 void OnRetry() override; | 68 void OnRetry() override; |
| 69 void OnCancel() override; | 69 void OnCancel() override; |
| 70 void OnConfirmationClosed() override; | 70 void OnConfirmationClosed() override; |
| 71 void OnAdJoined(const std::string& realm) override; | 71 void OnAdJoined(const std::string& realm) override; |
| 72 void OnDeviceAttributeProvided(const std::string& asset_id, | 72 void OnDeviceAttributeProvided(const std::string& asset_id, |
| 73 const std::string& location) override; | 73 const std::string& location) override; |
| 74 | 74 |
| 75 // EnterpriseEnrollmentHelper::EnrollmentStatusConsumer implementation: | 75 // EnterpriseEnrollmentHelper::EnrollmentStatusConsumer implementation: |
| 76 void OnAuthError(const GoogleServiceAuthError& error) override; | 76 void OnAuthError(const GoogleServiceAuthError& error) override; |
| 77 void OnMultipleLicensesAvailable( |
| 78 const EnrollmentLicenseMap& licenses) override; |
| 77 void OnEnrollmentError(policy::EnrollmentStatus status) override; | 79 void OnEnrollmentError(policy::EnrollmentStatus status) override; |
| 78 void OnOtherError(EnterpriseEnrollmentHelper::OtherError error) override; | 80 void OnOtherError(EnterpriseEnrollmentHelper::OtherError error) override; |
| 79 void OnDeviceEnrolled(const std::string& additional_token) override; | 81 void OnDeviceEnrolled(const std::string& additional_token) override; |
| 80 void OnDeviceAttributeUploadCompleted(bool success) override; | 82 void OnDeviceAttributeUploadCompleted(bool success) override; |
| 81 void OnDeviceAttributeUpdatePermission(bool granted) override; | 83 void OnDeviceAttributeUpdatePermission(bool granted) override; |
| 82 | 84 |
| 83 // ActiveDirectoryJoinDelegate implementation: | 85 // ActiveDirectoryJoinDelegate implementation: |
| 84 void JoinDomain(OnDomainJoinedCallback on_joined_callback) override; | 86 void JoinDomain(OnDomainJoinedCallback on_joined_callback) override; |
| 85 | 87 |
| 86 // Used for testing. | 88 // Used for testing. |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 std::unique_ptr<EnterpriseEnrollmentHelper> enrollment_helper_; | 186 std::unique_ptr<EnterpriseEnrollmentHelper> enrollment_helper_; |
| 185 OnDomainJoinedCallback on_joined_callback_; | 187 OnDomainJoinedCallback on_joined_callback_; |
| 186 base::WeakPtrFactory<EnrollmentScreen> weak_ptr_factory_; | 188 base::WeakPtrFactory<EnrollmentScreen> weak_ptr_factory_; |
| 187 | 189 |
| 188 DISALLOW_COPY_AND_ASSIGN(EnrollmentScreen); | 190 DISALLOW_COPY_AND_ASSIGN(EnrollmentScreen); |
| 189 }; | 191 }; |
| 190 | 192 |
| 191 } // namespace chromeos | 193 } // namespace chromeos |
| 192 | 194 |
| 193 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_H_ | 195 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_H_ |
| OLD | NEW |