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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 static void RegisterPrefs(PrefRegistrySimple* registry); | 103 static void RegisterPrefs(PrefRegistrySimple* registry); |
104 | 104 |
105 virtual ~UserManager(); | 105 virtual ~UserManager(); |
106 | 106 |
107 virtual UserImageManager* GetUserImageManager() = 0; | 107 virtual UserImageManager* GetUserImageManager() = 0; |
108 | 108 |
109 // Returns a list of users who have logged into this device previously. This | 109 // Returns a list of users who have logged into this device previously. This |
110 // is sorted by last login date with the most recent user at the beginning. | 110 // is sorted by last login date with the most recent user at the beginning. |
111 virtual const UserList& GetUsers() const = 0; | 111 virtual const UserList& GetUsers() const = 0; |
112 | 112 |
| 113 // Returns list of users admitted for logging in into multiprofile session. |
| 114 virtual UserList GetUsersAdmittedForMultiProfile() const = 0; |
| 115 |
113 // Returns a list of users who are currently logged in. | 116 // Returns a list of users who are currently logged in. |
114 virtual const UserList& GetLoggedInUsers() const = 0; | 117 virtual const UserList& GetLoggedInUsers() const = 0; |
115 | 118 |
116 // Returns a list of users who are currently logged in in the LRU order - | 119 // Returns a list of users who are currently logged in in the LRU order - |
117 // so the active user is the first one in the list. If there is no user logged | 120 // so the active user is the first one in the list. If there is no user logged |
118 // in, the current user will be returned. | 121 // in, the current user will be returned. |
119 virtual const UserList& GetLRULoggedInUsers() = 0; | 122 virtual const UserList& GetLRULoggedInUsers() = 0; |
120 | 123 |
121 // Indicates that a user with the given |email| has just logged in. The | 124 // Indicates that a user with the given |email| has just logged in. The |
122 // persistent list is updated accordingly if the user is not ephemeral. | 125 // persistent list is updated accordingly if the user is not ephemeral. |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 ScopedTestUserManager(); | 366 ScopedTestUserManager(); |
364 ~ScopedTestUserManager(); | 367 ~ScopedTestUserManager(); |
365 | 368 |
366 private: | 369 private: |
367 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager); | 370 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager); |
368 }; | 371 }; |
369 | 372 |
370 } // namespace chromeos | 373 } // namespace chromeos |
371 | 374 |
372 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ | 375 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ |
OLD | NEW |