Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(377)

Side by Side Diff: chrome/browser/chromeos/login/existing_user_controller.h

Issue 10928088: Factory reset screen is added (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 virtual void SetDisplayEmail(const std::string& email) OVERRIDE; 72 virtual void SetDisplayEmail(const std::string& email) OVERRIDE;
73 virtual void CompleteLogin(const std::string& username, 73 virtual void CompleteLogin(const std::string& username,
74 const std::string& password) OVERRIDE; 74 const std::string& password) OVERRIDE;
75 virtual void Login(const std::string& username, 75 virtual void Login(const std::string& username,
76 const std::string& password) OVERRIDE; 76 const std::string& password) OVERRIDE;
77 virtual void Signout() OVERRIDE; 77 virtual void Signout() OVERRIDE;
78 virtual void LoginAsDemoUser() OVERRIDE; 78 virtual void LoginAsDemoUser() OVERRIDE;
79 virtual void LoginAsGuest() OVERRIDE; 79 virtual void LoginAsGuest() OVERRIDE;
80 virtual void OnUserSelected(const std::string& username) OVERRIDE; 80 virtual void OnUserSelected(const std::string& username) OVERRIDE;
81 virtual void OnStartEnterpriseEnrollment() OVERRIDE; 81 virtual void OnStartEnterpriseEnrollment() OVERRIDE;
82 virtual void OnStartDeviceReset() OVERRIDE;
82 83
83 // content::NotificationObserver implementation. 84 // content::NotificationObserver implementation.
84 virtual void Observe(int type, 85 virtual void Observe(int type,
85 const content::NotificationSource& source, 86 const content::NotificationSource& source,
86 const content::NotificationDetails& details) OVERRIDE; 87 const content::NotificationDetails& details) OVERRIDE;
87 88
88 // Set a delegate that we will pass LoginStatusConsumer events to. 89 // Set a delegate that we will pass LoginStatusConsumer events to.
89 // Used for testing. 90 // Used for testing.
90 void set_login_status_consumer(LoginStatusConsumer* consumer) { 91 void set_login_status_consumer(LoginStatusConsumer* consumer) {
91 login_status_consumer_ = consumer; 92 login_status_consumer_ = consumer;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 void OnEnrollmentOwnershipCheckCompleted( 153 void OnEnrollmentOwnershipCheckCompleted(
153 DeviceSettingsService::OwnershipStatus status, 154 DeviceSettingsService::OwnershipStatus status,
154 bool current_user_is_owner); 155 bool current_user_is_owner);
155 156
156 // Enters the enterprise enrollment screen. |forced| is true if this is the 157 // Enters the enterprise enrollment screen. |forced| is true if this is the
157 // result of an auto-enrollment check, and the user shouldn't be able to 158 // result of an auto-enrollment check, and the user shouldn't be able to
158 // easily cancel the enrollment. In that case, |user| is the user name that 159 // easily cancel the enrollment. In that case, |user| is the user name that
159 // first logged in. 160 // first logged in.
160 void ShowEnrollmentScreen(bool forced, const std::string& user); 161 void ShowEnrollmentScreen(bool forced, const std::string& user);
161 162
163 // Shows "reset device" screen.
164 void ShowResetScreen();
165
162 // Invoked to complete login. Login might be suspended if auto-enrollment 166 // Invoked to complete login. Login might be suspended if auto-enrollment
163 // has to be performed, and will resume once auto-enrollment completes. 167 // has to be performed, and will resume once auto-enrollment completes.
164 void CompleteLoginInternal(std::string username, std::string password); 168 void CompleteLoginInternal(std::string username, std::string password);
165 169
166 // Creates |login_performer_| if necessary and calls login() on it. 170 // Creates |login_performer_| if necessary and calls login() on it.
167 void PerformLogin(const std::string& username, 171 void PerformLogin(const std::string& username,
168 const std::string& password, 172 const std::string& password,
169 LoginPerformer::AuthorizationMode auth_mode, 173 LoginPerformer::AuthorizationMode auth_mode,
170 DeviceSettingsService::OwnershipStatus ownership_status, 174 DeviceSettingsService::OwnershipStatus ownership_status,
171 bool is_owner); 175 bool is_owner);
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 base::Time time_init_; 258 base::Time time_init_;
255 259
256 FRIEND_TEST_ALL_PREFIXES(ExistingUserControllerTest, ExistingUserLogin); 260 FRIEND_TEST_ALL_PREFIXES(ExistingUserControllerTest, ExistingUserLogin);
257 261
258 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); 262 DISALLOW_COPY_AND_ASSIGN(ExistingUserController);
259 }; 263 };
260 264
261 } // namespace chromeos 265 } // namespace chromeos
262 266
263 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ 267 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698