OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 void HandleUnlockOnLoginSuccess(); | 352 void HandleUnlockOnLoginSuccess(); |
353 void HandleLoginScreenUpdate(); | 353 void HandleLoginScreenUpdate(); |
354 void HandleShowLoadingTimeoutError(); | 354 void HandleShowLoadingTimeoutError(); |
355 void HandleUpdateOfflineLogin(bool offline_login_active); | 355 void HandleUpdateOfflineLogin(bool offline_login_active); |
356 void HandleShowSupervisedUserCreationScreen(); | 356 void HandleShowSupervisedUserCreationScreen(); |
357 void HandleFocusPod(const std::string& user_id); | 357 void HandleFocusPod(const std::string& user_id); |
358 void HandleLaunchKioskApp(const std::string& app_id, bool diagnostic_mode); | 358 void HandleLaunchKioskApp(const std::string& app_id, bool diagnostic_mode); |
359 void HandleRetrieveAuthenticatedUserEmail(double attempt_token); | 359 void HandleRetrieveAuthenticatedUserEmail(double attempt_token); |
360 void HandleGetPublicSessionKeyboardLayouts(const std::string& user_id, | 360 void HandleGetPublicSessionKeyboardLayouts(const std::string& user_id, |
361 const std::string& locale); | 361 const std::string& locale); |
| 362 void HandleCancelConsumerManagementEnrollment(); |
362 | 363 |
363 // Sends the list of keyboard layouts available for the currently selected | 364 // Sends the list of keyboard layouts available for the currently selected |
364 // public session locale. | 365 // public session locale. |
365 void SendPublicSessionKeyboardLayouts( | 366 void SendPublicSessionKeyboardLayouts( |
366 const std::string& user_id, | 367 const std::string& user_id, |
367 scoped_ptr<base::ListValue> keyboard_layouts); | 368 scoped_ptr<base::ListValue> keyboard_layouts); |
368 | 369 |
369 // Returns true iff | 370 // Returns true iff |
370 // (i) log in is restricted to some user list, | 371 // (i) log in is restricted to some user list, |
371 // (ii) all users in the restricted list are present. | 372 // (ii) all users in the restricted list are present. |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 | 464 |
464 base::Closure kiosk_enable_flow_aborted_callback_for_test_; | 465 base::Closure kiosk_enable_flow_aborted_callback_for_test_; |
465 | 466 |
466 // Non-owning ptr. | 467 // Non-owning ptr. |
467 // TODO (ygorshenin@): remove this dependency. | 468 // TODO (ygorshenin@): remove this dependency. |
468 GaiaScreenHandler* gaia_screen_handler_; | 469 GaiaScreenHandler* gaia_screen_handler_; |
469 | 470 |
470 // Helper that retrieves the authenticated user's e-mail address. | 471 // Helper that retrieves the authenticated user's e-mail address. |
471 scoped_ptr<AuthenticatedUserEmailRetriever> email_retriever_; | 472 scoped_ptr<AuthenticatedUserEmailRetriever> email_retriever_; |
472 | 473 |
| 474 // Whether consumer management enrollment is in progress. |
| 475 bool is_enrolling_consumer_management_; |
| 476 |
473 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; | 477 base::WeakPtrFactory<SigninScreenHandler> weak_factory_; |
474 | 478 |
475 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); | 479 DISALLOW_COPY_AND_ASSIGN(SigninScreenHandler); |
476 }; | 480 }; |
477 | 481 |
478 } // namespace chromeos | 482 } // namespace chromeos |
479 | 483 |
480 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ | 484 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_SIGNIN_SCREEN_HANDLER_H_ |
OLD | NEW |