Chromium Code Reviews| 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_CHROMEOS_LOGIN_MANAGED_LOCALLY_MANAGED_USER_CREATION_SCRE EN_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_LOCALLY_MANAGED_USER_CREATION_SCRE EN_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_LOCALLY_MANAGED_USER_CREATION_SCRE EN_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_LOCALLY_MANAGED_USER_CREATION_SCRE EN_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 33 // Called when manager user is successfully authenticated, so ui elements | 33 // Called when manager user is successfully authenticated, so ui elements |
| 34 // should result in forced logout. | 34 // should result in forced logout. |
| 35 void ShowManagerInconsistentStateErrorScreen(); | 35 void ShowManagerInconsistentStateErrorScreen(); |
| 36 | 36 |
| 37 // Called when authentication fails for manager with provided password. | 37 // Called when authentication fails for manager with provided password. |
| 38 // Displays wrong password message on manager selection screen. | 38 // Displays wrong password message on manager selection screen. |
| 39 void OnManagerLoginFailure(); | 39 void OnManagerLoginFailure(); |
| 40 | 40 |
| 41 // Called when manager is successfully authenticated and account is in | 41 // Called when manager is successfully authenticated and account is in |
| 42 // consistent state. | 42 // consistent state. |
| 43 void OnManagerFullyAuthenticated(); | |
| 44 // Called when manager is successfully authenticated against cryptohome, but | |
|
ygorshenin1
2013/04/12 12:49:35
nit: insert empty line before #44
Denis Kuznetsov (DE-MUC)
2013/04/12 13:00:17
Done.
| |
| 45 // OAUTH token validation have not comleted yet. | |
| 43 // Results in spinner indicating that creation is in process. | 46 // Results in spinner indicating that creation is in process. |
| 44 void OnManagerSignIn(); | 47 void OnManagerCryptohomeAuthenticated(); |
| 45 | 48 |
| 46 // Shows initial screen where managed user name/password are defined and | 49 // Shows initial screen where managed user name/password are defined and |
| 47 // manager is selected. | 50 // manager is selected. |
| 48 void ShowInitialScreen(); | 51 void ShowInitialScreen(); |
| 49 | 52 |
| 50 // WizardScreen implementation: | 53 // WizardScreen implementation: |
| 51 virtual void PrepareToShow() OVERRIDE; | 54 virtual void PrepareToShow() OVERRIDE; |
| 52 virtual void Show() OVERRIDE; | 55 virtual void Show() OVERRIDE; |
| 53 virtual void Hide() OVERRIDE; | 56 virtual void Hide() OVERRIDE; |
| 54 virtual std::string GetName() const OVERRIDE; | 57 virtual std::string GetName() const OVERRIDE; |
| 55 | 58 |
| 56 // LocallyManagedUserCreationScreenHandler::Delegate implementation: | 59 // LocallyManagedUserCreationScreenHandler::Delegate implementation: |
| 57 virtual void OnExit() OVERRIDE; | 60 virtual void OnExit() OVERRIDE; |
| 58 virtual void OnActorDestroyed(LocallyManagedUserCreationScreenHandler* actor) | 61 virtual void OnActorDestroyed(LocallyManagedUserCreationScreenHandler* actor) |
| 59 OVERRIDE; | 62 OVERRIDE; |
| 60 virtual void RunFlow(string16& display_name, | 63 virtual void CreateManagedUser(string16& display_name, |
| 61 std::string& managed_user_password, | 64 std::string& managed_user_password) OVERRIDE; |
| 62 std::string& manager_id, | 65 virtual void AuthenticateManager(std::string& manager_id, |
| 63 std::string& manager_password) OVERRIDE; | 66 std::string& manager_password) OVERRIDE; |
| 64 virtual void AbortFlow() OVERRIDE; | 67 virtual void AbortFlow() OVERRIDE; |
| 65 virtual void RetryLastStep() OVERRIDE; | |
| 66 virtual void FinishFlow() OVERRIDE; | 68 virtual void FinishFlow() OVERRIDE; |
| 67 virtual void SelectPicture() OVERRIDE; | 69 virtual void SelectPicture() OVERRIDE; |
| 68 | 70 |
| 69 // LocallyManagedUserController::StatusConsumer overrides. | 71 // LocallyManagedUserController::StatusConsumer overrides. |
| 70 virtual void OnCreationError(LocallyManagedUserController::ErrorCode code, | 72 virtual void OnCreationError(LocallyManagedUserController::ErrorCode code, |
| 71 bool recoverable) OVERRIDE; | 73 bool recoverable) OVERRIDE; |
| 72 virtual void OnCreationSuccess() OVERRIDE; | 74 virtual void OnCreationSuccess() OVERRIDE; |
| 73 | 75 |
| 74 // ConnectivityStateHelperObserver implementation: | 76 // ConnectivityStateHelperObserver implementation: |
| 75 virtual void OnPortalDetectionCompleted( | 77 virtual void OnPortalDetectionCompleted( |
| 76 const Network* network, | 78 const Network* network, |
| 77 const NetworkPortalDetector::CaptivePortalState& state) OVERRIDE; | 79 const NetworkPortalDetector::CaptivePortalState& state) OVERRIDE; |
| 78 private: | 80 private: |
| 79 LocallyManagedUserCreationScreenHandler* actor_; | 81 LocallyManagedUserCreationScreenHandler* actor_; |
| 80 | 82 |
| 81 scoped_ptr<LocallyManagedUserController> controller_; | 83 scoped_ptr<LocallyManagedUserController> controller_; |
| 82 | 84 |
| 83 bool on_error_screen_; | 85 bool on_error_screen_; |
| 84 bool on_image_screen_; | 86 bool on_image_screen_; |
| 85 | 87 |
| 86 DISALLOW_COPY_AND_ASSIGN(LocallyManagedUserCreationScreen); | 88 DISALLOW_COPY_AND_ASSIGN(LocallyManagedUserCreationScreen); |
| 87 }; | 89 }; |
| 88 | 90 |
| 89 } // namespace chromeos | 91 } // namespace chromeos |
| 90 | 92 |
| 91 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_LOCALLY_MANAGED_USER_CREATION_S CREEN_H_ | 93 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_LOCALLY_MANAGED_USER_CREATION_S CREEN_H_ |
| 92 | 94 |
| OLD | NEW |