| 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/base/locale_util.h" | 10 #include "chrome/browser/chromeos/base/locale_util.h" |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 static void Destroy(); | 115 static void Destroy(); |
| 116 | 116 |
| 117 // Returns the singleton instance or |NULL| if the singleton has either not | 117 // Returns the singleton instance or |NULL| if the singleton has either not |
| 118 // been created yet or is already destroyed. This method is not thread-safe | 118 // been created yet or is already destroyed. This method is not thread-safe |
| 119 // and must be called from the main UI thread. | 119 // and must be called from the main UI thread. |
| 120 static UserManager* Get(); | 120 static UserManager* Get(); |
| 121 | 121 |
| 122 // Registers user manager preferences. | 122 // Registers user manager preferences. |
| 123 static void RegisterPrefs(PrefRegistrySimple* registry); | 123 static void RegisterPrefs(PrefRegistrySimple* registry); |
| 124 | 124 |
| 125 // Returns true if multiple profiles support is allowed. | |
| 126 static bool IsMultipleProfilesAllowed(); | |
| 127 | |
| 128 virtual ~UserManager(); | 125 virtual ~UserManager(); |
| 129 | 126 |
| 130 virtual MultiProfileUserController* GetMultiProfileUserController() = 0; | 127 virtual MultiProfileUserController* GetMultiProfileUserController() = 0; |
| 131 virtual UserImageManager* GetUserImageManager(const std::string& user_id) = 0; | 128 virtual UserImageManager* GetUserImageManager(const std::string& user_id) = 0; |
| 132 virtual SupervisedUserManager* GetSupervisedUserManager() = 0; | 129 virtual SupervisedUserManager* GetSupervisedUserManager() = 0; |
| 133 | 130 |
| 134 // 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 |
| 135 // 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. |
| 136 virtual const UserList& GetUsers() const = 0; | 133 virtual const UserList& GetUsers() const = 0; |
| 137 | 134 |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 ScopedTestUserManager(); | 403 ScopedTestUserManager(); |
| 407 ~ScopedTestUserManager(); | 404 ~ScopedTestUserManager(); |
| 408 | 405 |
| 409 private: | 406 private: |
| 410 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager); | 407 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager); |
| 411 }; | 408 }; |
| 412 | 409 |
| 413 } // namespace chromeos | 410 } // namespace chromeos |
| 414 | 411 |
| 415 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ | 412 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ |
| OLD | NEW |