| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_SIGNIN_SCREEN_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 132 |
| 133 // BrowsingDataRemover::Observer overrides. | 133 // BrowsingDataRemover::Observer overrides. |
| 134 virtual void OnBrowsingDataRemoverDone() OVERRIDE; | 134 virtual void OnBrowsingDataRemoverDone() OVERRIDE; |
| 135 | 135 |
| 136 // SystemKeyEventListener::CapsLockObserver overrides. | 136 // SystemKeyEventListener::CapsLockObserver overrides. |
| 137 virtual void OnCapsLockChange(bool enabled) OVERRIDE; | 137 virtual void OnCapsLockChange(bool enabled) OVERRIDE; |
| 138 | 138 |
| 139 // Shows signin screen after dns cache and cookie cleanup operations finish. | 139 // Shows signin screen after dns cache and cookie cleanup operations finish. |
| 140 void ShowSigninScreenIfReady(); | 140 void ShowSigninScreenIfReady(); |
| 141 | 141 |
| 142 // Tells webui to load authentication extension. |force| is used to force the |
| 143 // extension reloading, if it has already been loaded. |
| 144 void LoadAuthExtension(bool force); |
| 145 |
| 142 // Handles confirmation message of user authentication that was performed by | 146 // Handles confirmation message of user authentication that was performed by |
| 143 // the authentication extension. | 147 // the authentication extension. |
| 144 void HandleCompleteLogin(const base::ListValue* args); | 148 void HandleCompleteLogin(const base::ListValue* args); |
| 145 | 149 |
| 146 // Handles get existing user list request when populating account picker. | 150 // Handles get existing user list request when populating account picker. |
| 147 void HandleGetUsers(const base::ListValue* args); | 151 void HandleGetUsers(const base::ListValue* args); |
| 148 | 152 |
| 149 // Handles authentication request when signing in an existing user. | 153 // Handles authentication request when signing in an existing user. |
| 150 void HandleAuthenticateUser(const base::ListValue* args); | 154 void HandleAuthenticateUser(const base::ListValue* args); |
| 151 | 155 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 167 | 171 |
| 168 // Handles Enterprise Enrollment screen toggling. | 172 // Handles Enterprise Enrollment screen toggling. |
| 169 void HandleToggleEnrollmentScreen(const base::ListValue* args); | 173 void HandleToggleEnrollmentScreen(const base::ListValue* args); |
| 170 | 174 |
| 171 // Handles 'launchHelpApp' request. | 175 // Handles 'launchHelpApp' request. |
| 172 void HandleLaunchHelpApp(const base::ListValue* args); | 176 void HandleLaunchHelpApp(const base::ListValue* args); |
| 173 | 177 |
| 174 // Handle 'createAccount' request. | 178 // Handle 'createAccount' request. |
| 175 void HandleCreateAccount(const base::ListValue* args); | 179 void HandleCreateAccount(const base::ListValue* args); |
| 176 | 180 |
| 181 // Handle 'accountPickerReady' request. |
| 182 void HandleAccountPickerReady(const base::ListValue* args); |
| 183 |
| 177 // Handle 'loginWebuiReady' request. | 184 // Handle 'loginWebuiReady' request. |
| 178 void HandleLoginWebuiReady(const base::ListValue* args); | 185 void HandleLoginWebuiReady(const base::ListValue* args); |
| 179 | 186 |
| 180 // Handle 'loginRequestNetworkState' request. | 187 // Handle 'loginRequestNetworkState' request. |
| 181 void HandleLoginRequestNetworkState(const base::ListValue* args); | 188 void HandleLoginRequestNetworkState(const base::ListValue* args); |
| 182 | 189 |
| 183 // Handle 'loginAddNetworkStateObserver' request. | 190 // Handle 'loginAddNetworkStateObserver' request. |
| 184 void HandleLoginAddNetworkStateObserver(const base::ListValue* args); | 191 void HandleLoginAddNetworkStateObserver(const base::ListValue* args); |
| 185 | 192 |
| 186 // Handle 'loginRemoveNetworkStateObserver' request. | 193 // Handle 'loginRemoveNetworkStateObserver' request. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 198 | 205 |
| 199 // A delegate that glues this handler with backend LoginDisplay. | 206 // A delegate that glues this handler with backend LoginDisplay. |
| 200 SigninScreenHandlerDelegate* delegate_; | 207 SigninScreenHandlerDelegate* delegate_; |
| 201 | 208 |
| 202 // Whether screen should be shown right after initialization. | 209 // Whether screen should be shown right after initialization. |
| 203 bool show_on_init_; | 210 bool show_on_init_; |
| 204 | 211 |
| 205 // Keeps whether screen should be shown for OOBE. | 212 // Keeps whether screen should be shown for OOBE. |
| 206 bool oobe_ui_; | 213 bool oobe_ui_; |
| 207 | 214 |
| 215 // Whether webui has been loaded for the first time. |
| 216 bool is_first_webui_ready_; |
| 217 |
| 218 // Whether it is the first attempt to load the gaia extension. |
| 219 bool is_first_attempt_; |
| 220 |
| 208 // True if dns cache cleanup is done. | 221 // True if dns cache cleanup is done. |
| 209 bool dns_cleared_; | 222 bool dns_cleared_; |
| 210 | 223 |
| 211 // True if DNS cache task is already running. | 224 // True if DNS cache task is already running. |
| 212 bool dns_clear_task_running_; | 225 bool dns_clear_task_running_; |
| 213 | 226 |
| 214 // True if cookie jar cleanup is done. | 227 // True if cookie jar cleanup is done. |
| 215 bool cookies_cleared_; | 228 bool cookies_cleared_; |
| 216 | 229 |
| 217 // True if new user sign in flow is driven by the extension. | |
| 218 bool extension_driven_; | |
| 219 | |
| 220 // Help application used for help dialogs. | 230 // Help application used for help dialogs. |
| 221 scoped_refptr<HelpAppLauncher> help_app_; | 231 scoped_refptr<HelpAppLauncher> help_app_; |
| 222 | 232 |
| 223 // Network state informer used to keep offline message screen up. | 233 // Network state informer used to keep offline message screen up. |
| 224 scoped_ptr<NetworkStateInformer> network_state_informer_; | 234 scoped_ptr<NetworkStateInformer> network_state_informer_; |
| 225 | 235 |
| 226 // Email to pre-populate with. | 236 // Email to pre-populate with. |
| 227 std::string email_; | 237 std::string email_; |
| 228 | 238 |
| 229 // Test credentials. | 239 // Test credentials. |
| 230 std::string test_user_; | 240 std::string test_user_; |
| 231 std::string test_pass_; | 241 std::string test_pass_; |
| 232 | 242 |
| 233 BrowsingDataRemover* cookie_remover_; | 243 BrowsingDataRemover* cookie_remover_; |
| 234 | 244 |
| 235 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; | 245 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; |
| 236 | 246 |
| 237 // CapsLock state change notifier instance; | 247 // CapsLock state change notifier instance; |
| 238 SystemKeyEventListener* key_event_listener_; | 248 SystemKeyEventListener* key_event_listener_; |
| 239 | 249 |
| 240 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); | 250 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); |
| 241 }; | 251 }; |
| 242 | 252 |
| 243 } // namespace chromeos | 253 } // namespace chromeos |
| 244 | 254 |
| 245 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 255 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
| OLD | NEW |