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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 // operations are completed. | 113 // operations are completed. |
114 void ShowEnrollmentStatusOnSuccess(); | 114 void ShowEnrollmentStatusOnSuccess(); |
115 | 115 |
116 // Logs an UMA event in one of the "Enrollment.*" histograms, depending on | 116 // Logs an UMA event in one of the "Enrollment.*" histograms, depending on |
117 // |enrollment_mode_|. | 117 // |enrollment_mode_|. |
118 void UMA(policy::MetricEnrollment sample); | 118 void UMA(policy::MetricEnrollment sample); |
119 | 119 |
120 // Shows the signin screen. Used as a callback to run after auth reset. | 120 // Shows the signin screen. Used as a callback to run after auth reset. |
121 void ShowSigninScreen(); | 121 void ShowSigninScreen(); |
122 | 122 |
| 123 // Shows the device naming screen. |
| 124 // Used as a callback to run after successful enrollment. |
| 125 void ShowDeviceNamingScreen(); |
| 126 |
123 void OnAnyEnrollmentError(); | 127 void OnAnyEnrollmentError(); |
124 | 128 |
125 pairing_chromeos::ControllerPairingController* shark_controller_; | 129 pairing_chromeos::ControllerPairingController* shark_controller_; |
126 pairing_chromeos::HostPairingController* remora_controller_; | 130 pairing_chromeos::HostPairingController* remora_controller_; |
127 EnrollmentScreenActor* actor_; | 131 EnrollmentScreenActor* actor_; |
128 policy::EnrollmentConfig enrollment_config_; | 132 policy::EnrollmentConfig enrollment_config_; |
129 bool enrollment_failed_once_; | 133 bool enrollment_failed_once_; |
130 std::string enrolling_user_domain_; | 134 std::string enrolling_user_domain_; |
131 scoped_ptr<base::ElapsedTimer> elapsed_timer_; | 135 scoped_ptr<base::ElapsedTimer> elapsed_timer_; |
132 scoped_ptr<EnterpriseEnrollmentHelper> enrollment_helper_; | 136 scoped_ptr<EnterpriseEnrollmentHelper> enrollment_helper_; |
133 base::WeakPtrFactory<EnrollmentScreen> weak_ptr_factory_; | 137 base::WeakPtrFactory<EnrollmentScreen> weak_ptr_factory_; |
134 | 138 |
135 DISALLOW_COPY_AND_ASSIGN(EnrollmentScreen); | 139 DISALLOW_COPY_AND_ASSIGN(EnrollmentScreen); |
136 }; | 140 }; |
137 | 141 |
138 } // namespace chromeos | 142 } // namespace chromeos |
139 | 143 |
140 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_H_ | 144 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENROLLMENT_SCREEN_H_ |
OLD | NEW |