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_USER_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "chrome/browser/chromeos/login/user.h" | 10 #include "chrome/browser/chromeos/login/user.h" |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 static void RegisterPrefs(PrefRegistrySimple* registry); | 100 static void RegisterPrefs(PrefRegistrySimple* registry); |
101 | 101 |
102 virtual ~UserManager(); | 102 virtual ~UserManager(); |
103 | 103 |
104 virtual UserImageManager* GetUserImageManager() = 0; | 104 virtual UserImageManager* GetUserImageManager() = 0; |
105 | 105 |
106 // Returns a list of users who have logged into this device previously. This | 106 // Returns a list of users who have logged into this device previously. This |
107 // is sorted by last login date with the most recent user at the beginning. | 107 // is sorted by last login date with the most recent user at the beginning. |
108 virtual const UserList& GetUsers() const = 0; | 108 virtual const UserList& GetUsers() const = 0; |
109 | 109 |
| 110 // Returns list of users admitted for logging in into multiprofile session. |
| 111 virtual UserList GetUsersAdmittedForMultiProfile() const = 0; |
| 112 |
110 // Returns a list of users who are currently logged in. | 113 // Returns a list of users who are currently logged in. |
111 virtual const UserList& GetLoggedInUsers() const = 0; | 114 virtual const UserList& GetLoggedInUsers() const = 0; |
112 | 115 |
113 // Returns a list of users who are currently logged in in the LRU order - | 116 // Returns a list of users who are currently logged in in the LRU order - |
114 // so the active user is the first one in the list. If there is no user logged | 117 // so the active user is the first one in the list. If there is no user logged |
115 // in, the current user will be returned. | 118 // in, the current user will be returned. |
116 virtual const UserList& GetLRULoggedInUsers() = 0; | 119 virtual const UserList& GetLRULoggedInUsers() = 0; |
117 | 120 |
118 // Indicates that a user with the given |email| has just logged in. The | 121 // Indicates that a user with the given |email| has just logged in. The |
119 // persistent list is updated accordingly if the user is not ephemeral. | 122 // persistent list is updated accordingly if the user is not ephemeral. |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 ScopedTestUserManager(); | 359 ScopedTestUserManager(); |
357 ~ScopedTestUserManager(); | 360 ~ScopedTestUserManager(); |
358 | 361 |
359 private: | 362 private: |
360 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager); | 363 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager); |
361 }; | 364 }; |
362 | 365 |
363 } // namespace chromeos | 366 } // namespace chromeos |
364 | 367 |
365 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ | 368 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ |
OLD | NEW |