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 | |
45 // Called when manager is successfully authenticated against cryptohome, but | |
46 // OAUTH token validation have not comleted yet. | |
Nikita (slow)
2013/04/12 13:12:15
nit: hasn't
| |
43 // Results in spinner indicating that creation is in process. | 47 // Results in spinner indicating that creation is in process. |
44 void OnManagerSignIn(); | 48 void OnManagerCryptohomeAuthenticated(); |
45 | 49 |
46 // Shows initial screen where managed user name/password are defined and | 50 // Shows initial screen where managed user name/password are defined and |
47 // manager is selected. | 51 // manager is selected. |
48 void ShowInitialScreen(); | 52 void ShowInitialScreen(); |
49 | 53 |
50 // WizardScreen implementation: | 54 // WizardScreen implementation: |
51 virtual void PrepareToShow() OVERRIDE; | 55 virtual void PrepareToShow() OVERRIDE; |
52 virtual void Show() OVERRIDE; | 56 virtual void Show() OVERRIDE; |
53 virtual void Hide() OVERRIDE; | 57 virtual void Hide() OVERRIDE; |
54 virtual std::string GetName() const OVERRIDE; | 58 virtual std::string GetName() const OVERRIDE; |
55 | 59 |
56 // LocallyManagedUserCreationScreenHandler::Delegate implementation: | 60 // LocallyManagedUserCreationScreenHandler::Delegate implementation: |
57 virtual void OnExit() OVERRIDE; | 61 virtual void OnExit() OVERRIDE; |
58 virtual void OnActorDestroyed(LocallyManagedUserCreationScreenHandler* actor) | 62 virtual void OnActorDestroyed(LocallyManagedUserCreationScreenHandler* actor) |
59 OVERRIDE; | 63 OVERRIDE; |
60 virtual void RunFlow(string16& display_name, | 64 virtual void CreateManagedUser(string16& display_name, |
61 std::string& managed_user_password, | 65 std::string& managed_user_password) OVERRIDE; |
62 std::string& manager_id, | 66 virtual void AuthenticateManager(std::string& manager_id, |
63 std::string& manager_password) OVERRIDE; | 67 std::string& manager_password) OVERRIDE; |
64 virtual void AbortFlow() OVERRIDE; | 68 virtual void AbortFlow() OVERRIDE; |
65 virtual void RetryLastStep() OVERRIDE; | |
66 virtual void FinishFlow() OVERRIDE; | 69 virtual void FinishFlow() OVERRIDE; |
67 virtual void SelectPicture() OVERRIDE; | 70 virtual void SelectPicture() OVERRIDE; |
68 | 71 |
69 // LocallyManagedUserController::StatusConsumer overrides. | 72 // LocallyManagedUserController::StatusConsumer overrides. |
70 virtual void OnCreationError(LocallyManagedUserController::ErrorCode code, | 73 virtual void OnCreationError(LocallyManagedUserController::ErrorCode code, |
71 bool recoverable) OVERRIDE; | 74 bool recoverable) OVERRIDE; |
72 virtual void OnCreationSuccess() OVERRIDE; | 75 virtual void OnCreationSuccess() OVERRIDE; |
73 | 76 |
74 // ConnectivityStateHelperObserver implementation: | 77 // ConnectivityStateHelperObserver implementation: |
75 virtual void OnPortalDetectionCompleted( | 78 virtual void OnPortalDetectionCompleted( |
76 const Network* network, | 79 const Network* network, |
77 const NetworkPortalDetector::CaptivePortalState& state) OVERRIDE; | 80 const NetworkPortalDetector::CaptivePortalState& state) OVERRIDE; |
78 private: | 81 private: |
79 LocallyManagedUserCreationScreenHandler* actor_; | 82 LocallyManagedUserCreationScreenHandler* actor_; |
80 | 83 |
81 scoped_ptr<LocallyManagedUserController> controller_; | 84 scoped_ptr<LocallyManagedUserController> controller_; |
82 | 85 |
83 bool on_error_screen_; | 86 bool on_error_screen_; |
84 bool on_image_screen_; | 87 bool on_image_screen_; |
85 | 88 |
86 DISALLOW_COPY_AND_ASSIGN(LocallyManagedUserCreationScreen); | 89 DISALLOW_COPY_AND_ASSIGN(LocallyManagedUserCreationScreen); |
87 }; | 90 }; |
88 | 91 |
89 } // namespace chromeos | 92 } // namespace chromeos |
90 | 93 |
91 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_LOCALLY_MANAGED_USER_CREATION_S CREEN_H_ | 94 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MANAGED_LOCALLY_MANAGED_USER_CREATION_S CREEN_H_ |
92 | 95 |
OLD | NEW |