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

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

Issue 322533002: Restart Chrome on ChromeOS as early as possible to speed up restart. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix win build. Created 6 years, 5 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
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/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // Used for testing. 114 // Used for testing.
115 LoginDisplay* login_display() { 115 LoginDisplay* login_display() {
116 return login_display_.get(); 116 return login_display_.get();
117 } 117 }
118 118
119 // Returns the LoginDisplayHost for this controller. 119 // Returns the LoginDisplayHost for this controller.
120 LoginDisplayHost* login_display_host() { 120 LoginDisplayHost* login_display_host() {
121 return host_; 121 return host_;
122 } 122 }
123 123
124 // Returns value of LoginPerformer::auth_mode() (cached if performer is
125 // destroyed).
126 LoginPerformer::AuthorizationMode auth_mode() const;
127
128 // Returns value of LoginPerformer::password_changed() (cached if performer is
129 // destroyed).
130 bool password_changed() const;
131
124 private: 132 private:
125 friend class ExistingUserControllerTest; 133 friend class ExistingUserControllerTest;
126 friend class ExistingUserControllerAutoLoginTest; 134 friend class ExistingUserControllerAutoLoginTest;
127 friend class ExistingUserControllerPublicSessionTest; 135 friend class ExistingUserControllerPublicSessionTest;
128 friend class MockLoginPerformerDelegate; 136 friend class MockLoginPerformerDelegate;
129 137
130 // Retrieve public session auto-login policy and update the timer. 138 // Retrieve public session auto-login policy and update the timer.
131 void ConfigurePublicSessionAutoLogin(); 139 void ConfigurePublicSessionAutoLogin();
132 140
133 // Trigger public session auto-login. 141 // Trigger public session auto-login.
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 // Whether login attempt is running. 282 // Whether login attempt is running.
275 bool is_login_in_progress_; 283 bool is_login_in_progress_;
276 284
277 // Whether online login attempt succeeded. 285 // Whether online login attempt succeeded.
278 std::string online_succeeded_for_; 286 std::string online_succeeded_for_;
279 287
280 // True if password has been changed for user who is completing sign in. 288 // True if password has been changed for user who is completing sign in.
281 // Set in OnLoginSuccess. Before that use LoginPerformer::password_changed(). 289 // Set in OnLoginSuccess. Before that use LoginPerformer::password_changed().
282 bool password_changed_; 290 bool password_changed_;
283 291
292 // Set in OnLoginSuccess. Before that use LoginPerformer::auth_mode().
293 // Initialized with AUTH_MODE_EXTENSION as more restricted mode.
294 LoginPerformer::AuthorizationMode auth_mode_;
295
284 // True if auto-enrollment should be performed before starting the user's 296 // True if auto-enrollment should be performed before starting the user's
285 // session. 297 // session.
286 bool do_auto_enrollment_; 298 bool do_auto_enrollment_;
287 299
288 // Whether the sign-in UI is finished loading. 300 // Whether the sign-in UI is finished loading.
289 bool signin_screen_ready_; 301 bool signin_screen_ready_;
290 302
291 // The username used for auto-enrollment, if it was triggered. 303 // The username used for auto-enrollment, if it was triggered.
292 std::string auto_enrollment_username_; 304 std::string auto_enrollment_username_;
293 305
(...skipping 21 matching lines...) Expand all
315 local_account_auto_login_delay_subscription_; 327 local_account_auto_login_delay_subscription_;
316 328
317 FRIEND_TEST_ALL_PREFIXES(ExistingUserControllerTest, ExistingUserLogin); 329 FRIEND_TEST_ALL_PREFIXES(ExistingUserControllerTest, ExistingUserLogin);
318 330
319 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); 331 DISALLOW_COPY_AND_ASSIGN(ExistingUserController);
320 }; 332 };
321 333
322 } // namespace chromeos 334 } // namespace chromeos
323 335
324 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_ 336 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/existing_user_controller.cc » ('j') | chrome/browser/chromeos/login/login_utils.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698