| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 bool IsEnrollmentScreenHiddenByError() const; | 105 bool IsEnrollmentScreenHiddenByError() const; |
| 106 | 106 |
| 107 // Keeps the controller for this actor. | 107 // Keeps the controller for this actor. |
| 108 Controller* controller_; | 108 Controller* controller_; |
| 109 | 109 |
| 110 bool show_on_init_; | 110 bool show_on_init_; |
| 111 | 111 |
| 112 // The enrollment configuration. | 112 // The enrollment configuration. |
| 113 policy::EnrollmentConfig config_; | 113 policy::EnrollmentConfig config_; |
| 114 | 114 |
| 115 // Whether an enrollment attempt has failed. | |
| 116 bool enrollment_failed_once_; | |
| 117 | |
| 118 // Latest enrollment frame error. | 115 // Latest enrollment frame error. |
| 119 net::Error frame_error_; | 116 net::Error frame_error_; |
| 120 | 117 |
| 121 // True if screen was not shown yet. | 118 // True if screen was not shown yet. |
| 122 bool first_show_; | 119 bool first_show_; |
| 123 | 120 |
| 124 // Whether we should handle network errors on enrollment screen. | 121 // Whether we should handle network errors on enrollment screen. |
| 125 // True when signin screen step is shown. | 122 // True when signin screen step is shown. |
| 126 bool observe_network_failure_; | 123 bool observe_network_failure_; |
| 127 | 124 |
| 128 // Network state informer used to keep signin screen up. | 125 // Network state informer used to keep signin screen up. |
| 129 scoped_refptr<NetworkStateInformer> network_state_informer_; | 126 scoped_refptr<NetworkStateInformer> network_state_informer_; |
| 130 | 127 |
| 131 NetworkErrorModel* network_error_model_; | 128 NetworkErrorModel* network_error_model_; |
| 132 | 129 |
| 133 scoped_ptr<ErrorScreensHistogramHelper> histogram_helper_; | 130 scoped_ptr<ErrorScreensHistogramHelper> histogram_helper_; |
| 134 | 131 |
| 135 // GAIA extension loader. | 132 // GAIA extension loader. |
| 136 scoped_ptr<ScopedGaiaAuthExtension> auth_extension_; | 133 scoped_ptr<ScopedGaiaAuthExtension> auth_extension_; |
| 137 | 134 |
| 138 base::WeakPtrFactory<EnrollmentScreenHandler> weak_ptr_factory_; | 135 base::WeakPtrFactory<EnrollmentScreenHandler> weak_ptr_factory_; |
| 139 | 136 |
| 140 DISALLOW_COPY_AND_ASSIGN(EnrollmentScreenHandler); | 137 DISALLOW_COPY_AND_ASSIGN(EnrollmentScreenHandler); |
| 141 }; | 138 }; |
| 142 | 139 |
| 143 } // namespace chromeos | 140 } // namespace chromeos |
| 144 | 141 |
| 145 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENROLLMENT_SCREEN_HANDLER_H_ | 142 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_ENROLLMENT_SCREEN_HANDLER_H_ |
| OLD | NEW |