OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_EXISTING_USER_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // Creates and shows login UI for known users. | 60 // Creates and shows login UI for known users. |
61 void Init(const UserList& users); | 61 void Init(const UserList& users); |
62 | 62 |
63 // Tells the controller to enter the Enterprise Enrollment screen when | 63 // Tells the controller to enter the Enterprise Enrollment screen when |
64 // appropriate. | 64 // appropriate. |
65 void DoAutoEnrollment(); | 65 void DoAutoEnrollment(); |
66 | 66 |
67 // Tells the controller to resume a pending login. | 67 // Tells the controller to resume a pending login. |
68 void ResumeLogin(); | 68 void ResumeLogin(); |
69 | 69 |
70 // Invoked to prepare for a kiosk app launch attempt. | |
71 void PrepareKioskAppLaunch(); | |
72 | |
73 // Start the public session auto-login timer. | 70 // Start the public session auto-login timer. |
74 void StartPublicSessionAutoLoginTimer(); | 71 void StartPublicSessionAutoLoginTimer(); |
75 | 72 |
76 // Stop the public session auto-login timer when a login attempt begins. | 73 // Stop the public session auto-login timer when a login attempt begins. |
77 void StopPublicSessionAutoLoginTimer(); | 74 void StopPublicSessionAutoLoginTimer(); |
78 | 75 |
79 // LoginDisplay::Delegate: implementation | 76 // LoginDisplay::Delegate: implementation |
80 virtual void CancelPasswordChangedFlow() OVERRIDE; | 77 virtual void CancelPasswordChangedFlow() OVERRIDE; |
81 virtual void CreateAccount() OVERRIDE; | 78 virtual void CreateAccount() OVERRIDE; |
82 virtual void CompleteLogin(const UserContext& user_context) OVERRIDE; | 79 virtual void CompleteLogin(const UserContext& user_context) OVERRIDE; |
83 virtual string16 GetConnectedNetworkName() OVERRIDE; | 80 virtual string16 GetConnectedNetworkName() OVERRIDE; |
84 virtual bool IsSigninInProgress() const OVERRIDE; | 81 virtual bool IsSigninInProgress() const OVERRIDE; |
85 virtual void Login(const UserContext& user_context) OVERRIDE; | 82 virtual void Login(const UserContext& user_context) OVERRIDE; |
86 virtual void MigrateUserData(const std::string& old_password) OVERRIDE; | 83 virtual void MigrateUserData(const std::string& old_password) OVERRIDE; |
87 virtual void LoginAsRetailModeUser() OVERRIDE; | 84 virtual void LoginAsRetailModeUser() OVERRIDE; |
88 virtual void LoginAsGuest() OVERRIDE; | 85 virtual void LoginAsGuest() OVERRIDE; |
89 virtual void LoginAsPublicAccount(const std::string& username) OVERRIDE; | 86 virtual void LoginAsPublicAccount(const std::string& username) OVERRIDE; |
| 87 virtual void LoginAsKioskApp(const std::string& app_id) OVERRIDE; |
90 virtual void OnSigninScreenReady() OVERRIDE; | 88 virtual void OnSigninScreenReady() OVERRIDE; |
91 virtual void OnUserSelected(const std::string& username) OVERRIDE; | 89 virtual void OnUserSelected(const std::string& username) OVERRIDE; |
92 virtual void OnStartEnterpriseEnrollment() OVERRIDE; | 90 virtual void OnStartEnterpriseEnrollment() OVERRIDE; |
93 virtual void OnStartKioskEnableScreen() OVERRIDE; | 91 virtual void OnStartKioskEnableScreen() OVERRIDE; |
94 virtual void OnStartDeviceReset() OVERRIDE; | 92 virtual void OnStartDeviceReset() OVERRIDE; |
95 virtual void OnStartKioskAutolaunchScreen() OVERRIDE; | 93 virtual void OnStartKioskAutolaunchScreen() OVERRIDE; |
96 virtual void ResetPublicSessionAutoLoginTimer() OVERRIDE; | 94 virtual void ResetPublicSessionAutoLoginTimer() OVERRIDE; |
97 virtual void ResyncUserData() OVERRIDE; | 95 virtual void ResyncUserData() OVERRIDE; |
98 virtual void SetDisplayEmail(const std::string& email) OVERRIDE; | 96 virtual void SetDisplayEmail(const std::string& email) OVERRIDE; |
99 virtual void ShowWrongHWIDScreen() OVERRIDE; | 97 virtual void ShowWrongHWIDScreen() OVERRIDE; |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 scoped_ptr<login::NetworkStateHelper> network_state_helper_; | 301 scoped_ptr<login::NetworkStateHelper> network_state_helper_; |
304 | 302 |
305 FRIEND_TEST_ALL_PREFIXES(ExistingUserControllerTest, ExistingUserLogin); | 303 FRIEND_TEST_ALL_PREFIXES(ExistingUserControllerTest, ExistingUserLogin); |
306 | 304 |
307 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); | 305 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); |
308 }; | 306 }; |
309 | 307 |
310 } // namespace chromeos | 308 } // namespace chromeos |
311 | 309 |
312 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ | 310 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ |
OLD | NEW |