| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_USERS_USER_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_MANAGER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chrome/browser/chromeos/base/locale_util.h" | 10 #include "chrome/browser/chromeos/base/locale_util.h" |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 | 126 |
| 127 virtual MultiProfileUserController* GetMultiProfileUserController() = 0; | 127 virtual MultiProfileUserController* GetMultiProfileUserController() = 0; |
| 128 virtual UserImageManager* GetUserImageManager(const std::string& user_id) = 0; | 128 virtual UserImageManager* GetUserImageManager(const std::string& user_id) = 0; |
| 129 virtual SupervisedUserManager* GetSupervisedUserManager() = 0; | 129 virtual SupervisedUserManager* GetSupervisedUserManager() = 0; |
| 130 | 130 |
| 131 // Returns a list of users who have logged into this device previously. This | 131 // Returns a list of users who have logged into this device previously. This |
| 132 // is sorted by last login date with the most recent user at the beginning. | 132 // is sorted by last login date with the most recent user at the beginning. |
| 133 virtual const UserList& GetUsers() const = 0; | 133 virtual const UserList& GetUsers() const = 0; |
| 134 | 134 |
| 135 // Returns list of users admitted for logging in into multi-profile session. | 135 // Returns list of users admitted for logging in into multi-profile session. |
| 136 // Users that have a policy that prevents them from being added to the |
| 137 // multi-profile session will still be part of this list as long as they |
| 138 // are regular users (i.e. not a public session/supervised etc.). |
| 139 // Returns an empty list in case when primary user is not a regular one or |
| 140 // has a policy that prohibids it to be part of multi-profile session. |
| 136 virtual UserList GetUsersAdmittedForMultiProfile() const = 0; | 141 virtual UserList GetUsersAdmittedForMultiProfile() const = 0; |
| 137 | 142 |
| 138 // Returns a list of users who are currently logged in. | 143 // Returns a list of users who are currently logged in. |
| 139 virtual const UserList& GetLoggedInUsers() const = 0; | 144 virtual const UserList& GetLoggedInUsers() const = 0; |
| 140 | 145 |
| 141 // Returns a list of users who are currently logged in in the LRU order - | 146 // Returns a list of users who are currently logged in in the LRU order - |
| 142 // so the active user is the first one in the list. If there is no user logged | 147 // so the active user is the first one in the list. If there is no user logged |
| 143 // in, the current user will be returned. | 148 // in, the current user will be returned. |
| 144 virtual const UserList& GetLRULoggedInUsers() = 0; | 149 virtual const UserList& GetLRULoggedInUsers() = 0; |
| 145 | 150 |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 ScopedTestUserManager(); | 408 ScopedTestUserManager(); |
| 404 ~ScopedTestUserManager(); | 409 ~ScopedTestUserManager(); |
| 405 | 410 |
| 406 private: | 411 private: |
| 407 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager); | 412 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager); |
| 408 }; | 413 }; |
| 409 | 414 |
| 410 } // namespace chromeos | 415 } // namespace chromeos |
| 411 | 416 |
| 412 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_MANAGER_H_ | 417 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_USER_MANAGER_H_ |
| OLD | NEW |