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

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

Issue 398753004: [cros] Move User class to user_manager component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 | 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/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/callback_forward.h" 11 #include "base/callback_forward.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/gtest_prod_util.h" 13 #include "base/gtest_prod_util.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "base/strings/string16.h" 16 #include "base/strings/string16.h"
17 #include "base/time/time.h" 17 #include "base/time/time.h"
18 #include "base/timer/timer.h" 18 #include "base/timer/timer.h"
19 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" 19 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h"
20 #include "chrome/browser/chromeos/login/auth/login_performer.h" 20 #include "chrome/browser/chromeos/login/auth/login_performer.h"
21 #include "chrome/browser/chromeos/login/login_utils.h" 21 #include "chrome/browser/chromeos/login/login_utils.h"
22 #include "chrome/browser/chromeos/login/ui/login_display.h" 22 #include "chrome/browser/chromeos/login/ui/login_display.h"
23 #include "chrome/browser/chromeos/login/users/user.h"
24 #include "chrome/browser/chromeos/settings/cros_settings.h" 23 #include "chrome/browser/chromeos/settings/cros_settings.h"
25 #include "chrome/browser/chromeos/settings/device_settings_service.h" 24 #include "chrome/browser/chromeos/settings/device_settings_service.h"
25 #include "components/user_manager/user.h"
26 #include "content/public/browser/notification_observer.h" 26 #include "content/public/browser/notification_observer.h"
27 #include "content/public/browser/notification_registrar.h" 27 #include "content/public/browser/notification_registrar.h"
28 #include "ui/gfx/rect.h" 28 #include "ui/gfx/rect.h"
29 #include "url/gurl.h" 29 #include "url/gurl.h"
30 30
31 namespace chromeos { 31 namespace chromeos {
32 32
33 class CrosSettings; 33 class CrosSettings;
34 class LoginDisplayHost; 34 class LoginDisplayHost;
35 class UserContext; 35 class UserContext;
(...skipping 17 matching lines...) Expand all
53 // All UI initialization is deferred till Init() call. 53 // All UI initialization is deferred till Init() call.
54 explicit ExistingUserController(LoginDisplayHost* host); 54 explicit ExistingUserController(LoginDisplayHost* host);
55 virtual ~ExistingUserController(); 55 virtual ~ExistingUserController();
56 56
57 // Returns the current existing user controller if it has been created. 57 // Returns the current existing user controller if it has been created.
58 static ExistingUserController* current_controller() { 58 static ExistingUserController* current_controller() {
59 return current_controller_; 59 return current_controller_;
60 } 60 }
61 61
62 // Creates and shows login UI for known users. 62 // Creates and shows login UI for known users.
63 void Init(const UserList& users); 63 void Init(const user_manager::UserList& users);
64 64
65 // Tells the controller to enter the Enterprise Enrollment screen when 65 // Tells the controller to enter the Enterprise Enrollment screen when
66 // appropriate. 66 // appropriate.
67 void DoAutoEnrollment(); 67 void DoAutoEnrollment();
68 68
69 // Tells the controller to resume a pending login. 69 // Tells the controller to resume a pending login.
70 void ResumeLogin(); 70 void ResumeLogin();
71 71
72 // Start the public session auto-login timer. 72 // Start the public session auto-login timer.
73 void StartPublicSessionAutoLoginTimer(); 73 void StartPublicSessionAutoLoginTimer();
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 // The string arguments aren't passed by const reference because this is 212 // The string arguments aren't passed by const reference because this is
213 // posted as |resume_login_callback_| and resets it. 213 // posted as |resume_login_callback_| and resets it.
214 void PerformLogin(const UserContext& user_context, 214 void PerformLogin(const UserContext& user_context,
215 LoginPerformer::AuthorizationMode auth_mode); 215 LoginPerformer::AuthorizationMode auth_mode);
216 216
217 void set_login_performer_delegate(LoginPerformer::Delegate* d) { 217 void set_login_performer_delegate(LoginPerformer::Delegate* d) {
218 login_performer_delegate_.reset(d); 218 login_performer_delegate_.reset(d);
219 } 219 }
220 220
221 // Updates the |login_display_| attached to this controller. 221 // Updates the |login_display_| attached to this controller.
222 void UpdateLoginDisplay(const UserList& users); 222 void UpdateLoginDisplay(const user_manager::UserList& users);
223 223
224 // Sends an accessibility alert event to extension listeners. 224 // Sends an accessibility alert event to extension listeners.
225 void SendAccessibilityAlert(const std::string& alert_text); 225 void SendAccessibilityAlert(const std::string& alert_text);
226 226
227 // Public session auto-login timer. 227 // Public session auto-login timer.
228 scoped_ptr<base::OneShotTimer<ExistingUserController> > auto_login_timer_; 228 scoped_ptr<base::OneShotTimer<ExistingUserController> > auto_login_timer_;
229 229
230 // Public session auto-login timeout, in milliseconds. 230 // Public session auto-login timeout, in milliseconds.
231 int public_session_auto_login_delay_; 231 int public_session_auto_login_delay_;
232 232
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 local_account_auto_login_delay_subscription_; 327 local_account_auto_login_delay_subscription_;
328 328
329 FRIEND_TEST_ALL_PREFIXES(ExistingUserControllerTest, ExistingUserLogin); 329 FRIEND_TEST_ALL_PREFIXES(ExistingUserControllerTest, ExistingUserLogin);
330 330
331 DISALLOW_COPY_AND_ASSIGN(ExistingUserController); 331 DISALLOW_COPY_AND_ASSIGN(ExistingUserController);
332 }; 332 };
333 333
334 } // namespace chromeos 334 } // namespace chromeos
335 335
336 #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 | « chrome/browser/chromeos/login/crash_restore_browsertest.cc ('k') | chrome/browser/chromeos/login/existing_user_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698