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 "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
11 #include "chrome/browser/chromeos/login/user.h" | 11 #include "chrome/browser/chromeos/login/user.h" |
12 | 12 |
13 class PrefService; | 13 class PrefServiceSimple; |
14 | 14 |
15 namespace chromeos { | 15 namespace chromeos { |
16 | 16 |
17 class RemoveUserDelegate; | 17 class RemoveUserDelegate; |
18 class UserImageManager; | 18 class UserImageManager; |
19 | 19 |
20 // Base class for UserManagerImpl - provides a mechanism for discovering users | 20 // Base class for UserManagerImpl - provides a mechanism for discovering users |
21 // who have logged into this Chrome OS device before and updating that list. | 21 // who have logged into this Chrome OS device before and updating that list. |
22 class UserManager { | 22 class UserManager { |
23 public: | 23 public: |
(...skipping 29 matching lines...) Expand all Loading... |
53 // } | 53 // } |
54 // virtual void TearDown() { | 54 // virtual void TearDown() { |
55 // ... | 55 // ... |
56 // UserManager::Set(old_user_manager_); | 56 // UserManager::Set(old_user_manager_); |
57 // } | 57 // } |
58 // scoped_ptr<MockUserManager> mock_user_manager_; | 58 // scoped_ptr<MockUserManager> mock_user_manager_; |
59 // UserManager* old_user_manager_; | 59 // UserManager* old_user_manager_; |
60 static UserManager* Set(UserManager* mock); | 60 static UserManager* Set(UserManager* mock); |
61 | 61 |
62 // Registers user manager preferences. | 62 // Registers user manager preferences. |
63 static void RegisterPrefs(PrefService* local_state); | 63 static void RegisterPrefs(PrefServiceSimple* local_state); |
64 | 64 |
65 // Indicates imminent shutdown, allowing the UserManager to remove any | 65 // Indicates imminent shutdown, allowing the UserManager to remove any |
66 // observers it has registered. | 66 // observers it has registered. |
67 virtual void Shutdown() = 0; | 67 virtual void Shutdown() = 0; |
68 | 68 |
69 virtual ~UserManager(); | 69 virtual ~UserManager(); |
70 | 70 |
71 virtual UserImageManager* GetUserImageManager() = 0; | 71 virtual UserImageManager* GetUserImageManager() = 0; |
72 | 72 |
73 // Returns a list of users who have logged into this device previously. This | 73 // Returns a list of users who have logged into this device previously. This |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 | 202 |
203 virtual void AddObserver(Observer* obs) = 0; | 203 virtual void AddObserver(Observer* obs) = 0; |
204 virtual void RemoveObserver(Observer* obs) = 0; | 204 virtual void RemoveObserver(Observer* obs) = 0; |
205 | 205 |
206 virtual void NotifyLocalStateChanged() = 0; | 206 virtual void NotifyLocalStateChanged() = 0; |
207 }; | 207 }; |
208 | 208 |
209 } // namespace chromeos | 209 } // namespace chromeos |
210 | 210 |
211 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ | 211 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ |
OLD | NEW |