| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 namespace chromeos { | 32 namespace chromeos { |
| 33 | 33 |
| 34 class RemoveUserDelegate; | 34 class RemoveUserDelegate; |
| 35 | 35 |
| 36 // This class provides a mechanism for discovering users who have logged | 36 // This class provides a mechanism for discovering users who have logged |
| 37 // into this chromium os device before and updating that list. | 37 // into this chromium os device before and updating that list. |
| 38 class UserManager : public ProfileDownloaderDelegate, | 38 class UserManager : public ProfileDownloaderDelegate, |
| 39 public content::NotificationObserver { | 39 public content::NotificationObserver { |
| 40 public: | 40 public: |
| 41 // Email address assigned to the guest/incognito user. |
| 42 static const char kGuestUser[]; |
| 43 |
| 41 // Returns a shared instance of a UserManager. Not thread-safe, should only be | 44 // Returns a shared instance of a UserManager. Not thread-safe, should only be |
| 42 // called from the main UI thread. | 45 // called from the main UI thread. |
| 43 static UserManager* Get(); | 46 static UserManager* Get(); |
| 44 | 47 |
| 45 // Registers user manager preferences. | 48 // Registers user manager preferences. |
| 46 static void RegisterPrefs(PrefService* local_state); | 49 static void RegisterPrefs(PrefService* local_state); |
| 47 | 50 |
| 48 // Returns a list of the users who have logged into this device previously. | 51 // Returns a list of the users who have logged into this device previously. |
| 49 // It is sorted in order of recency, with most recent at the beginning. | 52 // It is sorted in order of recency, with most recent at the beginning. |
| 50 const UserList& GetUsers() const; | 53 const UserList& GetUsers() const; |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 | 300 |
| 298 // Data URL for |downloaded_profile_image_|. | 301 // Data URL for |downloaded_profile_image_|. |
| 299 std::string downloaded_profile_image_data_url_; | 302 std::string downloaded_profile_image_data_url_; |
| 300 | 303 |
| 301 DISALLOW_COPY_AND_ASSIGN(UserManager); | 304 DISALLOW_COPY_AND_ASSIGN(UserManager); |
| 302 }; | 305 }; |
| 303 | 306 |
| 304 } // namespace chromeos | 307 } // namespace chromeos |
| 305 | 308 |
| 306 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ | 309 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ |
| OLD | NEW |