Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(504)

Side by Side Diff: chrome/browser/chromeos/login/user_manager.h

Issue 11741003: Remove PrefServiceSimple, replacing it with PrefService and PrefRegistrySimple. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix double registration in Chrome Frame test. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 PrefServiceSimple; 13 class PrefRegistrySimple;
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // } 56 // }
57 // virtual void TearDown() { 57 // virtual void TearDown() {
58 // ... 58 // ...
59 // UserManager::Set(old_user_manager_); 59 // UserManager::Set(old_user_manager_);
60 // } 60 // }
61 // scoped_ptr<MockUserManager> mock_user_manager_; 61 // scoped_ptr<MockUserManager> mock_user_manager_;
62 // UserManager* old_user_manager_; 62 // UserManager* old_user_manager_;
63 static UserManager* Set(UserManager* mock); 63 static UserManager* Set(UserManager* mock);
64 64
65 // Registers user manager preferences. 65 // Registers user manager preferences.
66 static void RegisterPrefs(PrefServiceSimple* local_state); 66 static void RegisterPrefs(PrefRegistrySimple* registry);
67 67
68 // Indicates imminent shutdown, allowing the UserManager to remove any 68 // Indicates imminent shutdown, allowing the UserManager to remove any
69 // observers it has registered. 69 // observers it has registered.
70 virtual void Shutdown() = 0; 70 virtual void Shutdown() = 0;
71 71
72 virtual ~UserManager(); 72 virtual ~UserManager();
73 73
74 virtual UserImageManager* GetUserImageManager() = 0; 74 virtual UserImageManager* GetUserImageManager() = 0;
75 75
76 // Returns a list of users who have logged into this device previously. This 76 // Returns a list of users who have logged into this device previously. This
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 223
224 virtual void AddObserver(Observer* obs) = 0; 224 virtual void AddObserver(Observer* obs) = 0;
225 virtual void RemoveObserver(Observer* obs) = 0; 225 virtual void RemoveObserver(Observer* obs) = 0;
226 226
227 virtual void NotifyLocalStateChanged() = 0; 227 virtual void NotifyLocalStateChanged() = 0;
228 }; 228 };
229 229
230 } // namespace chromeos 230 } // namespace chromeos
231 231
232 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ 232 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/user_image_manager_impl.cc ('k') | chrome/browser/chromeos/login/user_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698