| 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 // Sets extension's URL to be used for the authentication process. |
| 143 void SetExtensionUrl(bool force); |
| 144 |
| 142 // Handles confirmation message of user authentication that was performed by | 145 // Handles confirmation message of user authentication that was performed by |
| 143 // the authentication extension. | 146 // the authentication extension. |
| 144 void HandleCompleteLogin(const base::ListValue* args); | 147 void HandleCompleteLogin(const base::ListValue* args); |
| 145 | 148 |
| 146 // Handles get existing user list request when populating account picker. | 149 // Handles get existing user list request when populating account picker. |
| 147 void HandleGetUsers(const base::ListValue* args); | 150 void HandleGetUsers(const base::ListValue* args); |
| 148 | 151 |
| 149 // Handles authentication request when signing in an existing user. | 152 // Handles authentication request when signing in an existing user. |
| 150 void HandleAuthenticateUser(const base::ListValue* args); | 153 void HandleAuthenticateUser(const base::ListValue* args); |
| 151 | 154 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 167 | 170 |
| 168 // Handles Enterprise Enrollment screen toggling. | 171 // Handles Enterprise Enrollment screen toggling. |
| 169 void HandleToggleEnrollmentScreen(const base::ListValue* args); | 172 void HandleToggleEnrollmentScreen(const base::ListValue* args); |
| 170 | 173 |
| 171 // Handles 'launchHelpApp' request. | 174 // Handles 'launchHelpApp' request. |
| 172 void HandleLaunchHelpApp(const base::ListValue* args); | 175 void HandleLaunchHelpApp(const base::ListValue* args); |
| 173 | 176 |
| 174 // Handle 'createAccount' request. | 177 // Handle 'createAccount' request. |
| 175 void HandleCreateAccount(const base::ListValue* args); | 178 void HandleCreateAccount(const base::ListValue* args); |
| 176 | 179 |
| 180 // Handle 'accountPickerReady' request. |
| 181 void HandleAccountPickerReady(const base::ListValue* args); |
| 182 |
| 177 // Handle 'loginWebuiReady' request. | 183 // Handle 'loginWebuiReady' request. |
| 178 void HandleLoginWebuiReady(const base::ListValue* args); | 184 void HandleLoginWebuiReady(const base::ListValue* args); |
| 179 | 185 |
| 180 // Handle 'loginRequestNetworkState' request. | 186 // Handle 'loginRequestNetworkState' request. |
| 181 void HandleLoginRequestNetworkState(const base::ListValue* args); | 187 void HandleLoginRequestNetworkState(const base::ListValue* args); |
| 182 | 188 |
| 183 // Handle 'loginAddNetworkStateObserver' request. | 189 // Handle 'loginAddNetworkStateObserver' request. |
| 184 void HandleLoginAddNetworkStateObserver(const base::ListValue* args); | 190 void HandleLoginAddNetworkStateObserver(const base::ListValue* args); |
| 185 | 191 |
| 186 // Handle 'loginRemoveNetworkStateObserver' request. | 192 // Handle 'loginRemoveNetworkStateObserver' request. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 198 | 204 |
| 199 // A delegate that glues this handler with backend LoginDisplay. | 205 // A delegate that glues this handler with backend LoginDisplay. |
| 200 SigninScreenHandlerDelegate* delegate_; | 206 SigninScreenHandlerDelegate* delegate_; |
| 201 | 207 |
| 202 // Whether screen should be shown right after initialization. | 208 // Whether screen should be shown right after initialization. |
| 203 bool show_on_init_; | 209 bool show_on_init_; |
| 204 | 210 |
| 205 // Keeps whether screen should be shown for OOBE. | 211 // Keeps whether screen should be shown for OOBE. |
| 206 bool oobe_ui_; | 212 bool oobe_ui_; |
| 207 | 213 |
| 214 // Whether handler is waiting for WebUI becomes ready. |
| 215 bool is_waiting_for_webui_ready_; |
| 216 |
| 217 // Whether it is the first attempt to load the gaia extension. |
| 218 bool is_first_attempt_; |
| 219 |
| 208 // True if dns cache cleanup is done. | 220 // True if dns cache cleanup is done. |
| 209 bool dns_cleared_; | 221 bool dns_cleared_; |
| 210 | 222 |
| 211 // True if DNS cache task is already running. | 223 // True if DNS cache task is already running. |
| 212 bool dns_clear_task_running_; | 224 bool dns_clear_task_running_; |
| 213 | 225 |
| 214 // True if cookie jar cleanup is done. | 226 // True if cookie jar cleanup is done. |
| 215 bool cookies_cleared_; | 227 bool cookies_cleared_; |
| 216 | 228 |
| 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. | 229 // Help application used for help dialogs. |
| 221 scoped_refptr<HelpAppLauncher> help_app_; | 230 scoped_refptr<HelpAppLauncher> help_app_; |
| 222 | 231 |
| 223 // Network state informer used to keep offline message screen up. | 232 // Network state informer used to keep offline message screen up. |
| 224 scoped_ptr<NetworkStateInformer> network_state_informer_; | 233 scoped_ptr<NetworkStateInformer> network_state_informer_; |
| 225 | 234 |
| 226 // Email to pre-populate with. | 235 // Email to pre-populate with. |
| 227 std::string email_; | 236 std::string email_; |
| 228 | 237 |
| 229 // Test credentials. | 238 // Test credentials. |
| 230 std::string test_user_; | 239 std::string test_user_; |
| 231 std::string test_pass_; | 240 std::string test_pass_; |
| 232 | 241 |
| 233 BrowsingDataRemover* cookie_remover_; | 242 BrowsingDataRemover* cookie_remover_; |
| 234 | 243 |
| 235 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; | 244 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; |
| 236 | 245 |
| 237 // CapsLock state change notifier instance; | 246 // CapsLock state change notifier instance; |
| 238 SystemKeyEventListener* key_event_listener_; | 247 SystemKeyEventListener* key_event_listener_; |
| 239 | 248 |
| 240 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); | 249 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); |
| 241 }; | 250 }; |
| 242 | 251 |
| 243 } // namespace chromeos | 252 } // namespace chromeos |
| 244 | 253 |
| 245 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 254 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
| OLD | NEW |