| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SCREENS_HOST_PAIRING_SCREEN_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HOST_PAIRING_SCREEN_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HOST_PAIRING_SCREEN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HOST_PAIRING_SCREEN_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper.
h" | 9 #include "chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper.
h" |
| 10 #include "chrome/browser/chromeos/login/screens/base_screen.h" | 10 #include "chrome/browser/chromeos/login/screens/base_screen.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 void OnEnrollmentError(policy::EnrollmentStatus status) override; | 70 void OnEnrollmentError(policy::EnrollmentStatus status) override; |
| 71 void OnOtherError(EnterpriseEnrollmentHelper::OtherError error) override; | 71 void OnOtherError(EnterpriseEnrollmentHelper::OtherError error) override; |
| 72 void OnDeviceEnrolled(const std::string& additional_token) override; | 72 void OnDeviceEnrolled(const std::string& additional_token) override; |
| 73 void OnDeviceAttributeUploadCompleted(bool success) override; | 73 void OnDeviceAttributeUploadCompleted(bool success) override; |
| 74 void OnDeviceAttributeUpdatePermission(bool granted) override; | 74 void OnDeviceAttributeUpdatePermission(bool granted) override; |
| 75 | 75 |
| 76 // Used as a callback for EnterpriseEnrollmentHelper::ClearAuth. | 76 // Used as a callback for EnterpriseEnrollmentHelper::ClearAuth. |
| 77 void OnAuthCleared(); | 77 void OnAuthCleared(); |
| 78 void OnAnyEnrollmentError(); | 78 void OnAnyEnrollmentError(); |
| 79 | 79 |
| 80 Delegate* delegate_; | 80 Delegate* delegate_ = nullptr; |
| 81 | 81 |
| 82 HostPairingScreenActor* actor_; | 82 HostPairingScreenActor* actor_ = nullptr; |
| 83 | 83 |
| 84 // Controller performing pairing. Owned by the wizard controller. | 84 // Controller performing pairing. Owned by the wizard controller. |
| 85 pairing_chromeos::HostPairingController* remora_controller_; | 85 pairing_chromeos::HostPairingController* remora_controller_ = nullptr; |
| 86 | 86 |
| 87 std::unique_ptr<EnterpriseEnrollmentHelper> enrollment_helper_; | 87 std::unique_ptr<EnterpriseEnrollmentHelper> enrollment_helper_; |
| 88 | 88 |
| 89 // Current stage of pairing process. | 89 // Current stage of pairing process. |
| 90 Stage current_stage_; | 90 Stage current_stage_ = pairing_chromeos::HostPairingController::STAGE_NONE; |
| 91 | 91 |
| 92 base::WeakPtrFactory<HostPairingScreen> weak_ptr_factory_; | 92 base::WeakPtrFactory<HostPairingScreen> weak_ptr_factory_; |
| 93 | 93 |
| 94 DISALLOW_COPY_AND_ASSIGN(HostPairingScreen); | 94 DISALLOW_COPY_AND_ASSIGN(HostPairingScreen); |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 } // namespace chromeos | 97 } // namespace chromeos |
| 98 | 98 |
| 99 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HOST_PAIRING_SCREEN_H_ | 99 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_HOST_PAIRING_SCREEN_H_ |
| OLD | NEW |