| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 96 |
| 97 virtual UserImageManager* GetUserImageManager() = 0; | 97 virtual UserImageManager* GetUserImageManager() = 0; |
| 98 | 98 |
| 99 // Returns a list of users who have logged into this device previously. This | 99 // Returns a list of users who have logged into this device previously. This |
| 100 // is sorted by last login date with the most recent user at the beginning. | 100 // is sorted by last login date with the most recent user at the beginning. |
| 101 virtual const UserList& GetUsers() const = 0; | 101 virtual const UserList& GetUsers() const = 0; |
| 102 | 102 |
| 103 // Returns a list of users who are currently logged in. | 103 // Returns a list of users who are currently logged in. |
| 104 virtual const UserList& GetLoggedInUsers() const = 0; | 104 virtual const UserList& GetLoggedInUsers() const = 0; |
| 105 | 105 |
| 106 // Returns a list of users who are currently logged in in the LRU order - |
| 107 // so the active user is the first one in the list. If there is no user logged |
| 108 // in, the current user will be returned. |
| 109 virtual const UserList& GetLRULoggedInUsers() = 0; |
| 110 |
| 106 // Indicates that a user with the given |email| has just logged in. The | 111 // Indicates that a user with the given |email| has just logged in. The |
| 107 // persistent list is updated accordingly if the user is not ephemeral. | 112 // persistent list is updated accordingly if the user is not ephemeral. |
| 108 // |browser_restart| is true when reloading Chrome after crash to distinguish | 113 // |browser_restart| is true when reloading Chrome after crash to distinguish |
| 109 // from normal sign in flow. | 114 // from normal sign in flow. |
| 110 // |username_hash| is used to identify homedir mount point. | 115 // |username_hash| is used to identify homedir mount point. |
| 111 virtual void UserLoggedIn(const std::string& email, | 116 virtual void UserLoggedIn(const std::string& email, |
| 112 const std::string& username_hash, | 117 const std::string& username_hash, |
| 113 bool browser_restart) = 0; | 118 bool browser_restart) = 0; |
| 114 | 119 |
| 115 // Switches to active user identified by |email|. User has to be logged in. | 120 // Switches to active user identified by |email|. User has to be logged in. |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 ScopedTestUserManager(); | 342 ScopedTestUserManager(); |
| 338 ~ScopedTestUserManager(); | 343 ~ScopedTestUserManager(); |
| 339 | 344 |
| 340 private: | 345 private: |
| 341 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager); | 346 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager); |
| 342 }; | 347 }; |
| 343 | 348 |
| 344 } // namespace chromeos | 349 } // namespace chromeos |
| 345 | 350 |
| 346 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ | 351 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ |
| OLD | NEW |