| 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_UI_WEBUI_CHROMEOS_LOGIN_ENROLLMENT_SCREEN_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENROLLMENT_SCREEN_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENROLLMENT_SCREEN_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENROLLMENT_SCREEN_HANDLER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "chrome/browser/chromeos/login/enrollment/enrollment_screen_view.h" | 12 #include "chrome/browser/chromeos/login/enrollment/enrollment_screen_view.h" |
| 13 #include "chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper.
h" | 13 #include "chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper.
h" |
| 14 #include "chrome/browser/chromeos/login/screens/error_screen.h" | 14 #include "chrome/browser/chromeos/login/screens/error_screen.h" |
| 15 #include "chrome/browser/chromeos/policy/enrollment_config.h" | 15 #include "chrome/browser/chromeos/policy/enrollment_config.h" |
| 16 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" | 16 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" |
| 17 #include "chrome/browser/ui/webui/chromeos/login/network_state_informer.h" | 17 #include "chrome/browser/ui/webui/chromeos/login/network_state_informer.h" |
| 18 #include "net/base/net_errors.h" | 18 #include "net/base/net_errors.h" |
| 19 #include "third_party/cros_system_api/dbus/service_constants.h" | 19 #include "third_party/cros_system_api/dbus/service_constants.h" |
| 20 | 20 |
| 21 namespace chromeos { | 21 namespace chromeos { |
| 22 | 22 |
| 23 class AuthPolicyLoginHelper; |
| 23 class ErrorScreensHistogramHelper; | 24 class ErrorScreensHistogramHelper; |
| 24 class HelpAppLauncher; | 25 class HelpAppLauncher; |
| 25 | 26 |
| 26 // Possible error states of the Active Directory screen. Must be in the same | 27 // Possible error states of the Active Directory screen. Must be in the same |
| 27 // order as ACTIVE_DIRECTORY_ERROR_STATE enum values. | 28 // order as ACTIVE_DIRECTORY_ERROR_STATE enum values. |
| 28 enum class ActiveDirectoryErrorState { | 29 enum class ActiveDirectoryErrorState { |
| 29 NONE = 0, | 30 NONE = 0, |
| 30 MACHINE_NAME_INVALID = 1, | 31 MACHINE_NAME_INVALID = 1, |
| 31 MACHINE_NAME_TOO_LONG = 2, | 32 MACHINE_NAME_TOO_LONG = 2, |
| 32 BAD_USERNAME = 3, | 33 BAD_USERNAME = 3, |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 // Network state informer used to keep signin screen up. | 148 // Network state informer used to keep signin screen up. |
| 148 scoped_refptr<NetworkStateInformer> network_state_informer_; | 149 scoped_refptr<NetworkStateInformer> network_state_informer_; |
| 149 | 150 |
| 150 ErrorScreen* error_screen_ = nullptr; | 151 ErrorScreen* error_screen_ = nullptr; |
| 151 | 152 |
| 152 std::unique_ptr<ErrorScreensHistogramHelper> histogram_helper_; | 153 std::unique_ptr<ErrorScreensHistogramHelper> histogram_helper_; |
| 153 | 154 |
| 154 // Help application used for help dialogs. | 155 // Help application used for help dialogs. |
| 155 scoped_refptr<HelpAppLauncher> help_app_; | 156 scoped_refptr<HelpAppLauncher> help_app_; |
| 156 | 157 |
| 158 // Helper to call AuthPolicyClient and cancel calls if needed. Used to join |
| 159 // Active Directory domain. |
| 160 std::unique_ptr<AuthPolicyLoginHelper> authpolicy_login_helper_; |
| 161 |
| 157 base::WeakPtrFactory<EnrollmentScreenHandler> weak_ptr_factory_; | 162 base::WeakPtrFactory<EnrollmentScreenHandler> weak_ptr_factory_; |
| 158 | 163 |
| 159 DISALLOW_COPY_AND_ASSIGN(EnrollmentScreenHandler); | 164 DISALLOW_COPY_AND_ASSIGN(EnrollmentScreenHandler); |
| 160 }; | 165 }; |
| 161 | 166 |
| 162 } // namespace chromeos | 167 } // namespace chromeos |
| 163 | 168 |
| 164 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENROLLMENT_SCREEN_HANDLER_H_ | 169 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENROLLMENT_SCREEN_HANDLER_H_ |
| OLD | NEW |