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

Side by Side Diff: chrome/browser/chromeos/login/user_image_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_IMAGE_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_IMAGE_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_IMAGE_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_IMAGE_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"
11 11
12 class PrefServiceSimple; 12 class PrefRegistrySimple;
13 13
14 namespace base { 14 namespace base {
15 class FilePath; 15 class FilePath;
16 } 16 }
17 17
18 namespace gfx { 18 namespace gfx {
19 class ImageSkia; 19 class ImageSkia;
20 } 20 }
21 21
22 namespace chromeos { 22 namespace chromeos {
23 23
24 class UserImage; 24 class UserImage;
25 25
26 // Base class that provides a mechanism for updating user images. 26 // Base class that provides a mechanism for updating user images.
27 class UserImageManager { 27 class UserImageManager {
28 public: 28 public:
29 // Registers user image manager preferences. 29 // Registers user image manager preferences.
30 static void RegisterPrefs(PrefServiceSimple* local_state); 30 static void RegisterPrefs(PrefRegistrySimple* registry);
31 31
32 virtual ~UserImageManager(); 32 virtual ~UserImageManager();
33 33
34 // Loads user image data from Local State. 34 // Loads user image data from Local State.
35 virtual void LoadUserImages(const UserList& users) = 0; 35 virtual void LoadUserImages(const UserList& users) = 0;
36 36
37 // Indicates that a user with the given |email| has just logged in. 37 // Indicates that a user with the given |email| has just logged in.
38 virtual void UserLoggedIn(const std::string& email, 38 virtual void UserLoggedIn(const std::string& email,
39 bool user_is_new, 39 bool user_is_new,
40 bool user_is_local) = 0; 40 bool user_is_local) = 0;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 virtual void DownloadProfileImage(const std::string& reason) = 0; 72 virtual void DownloadProfileImage(const std::string& reason) = 0;
73 73
74 // Returns the result of the last successful profile image download, if any. 74 // Returns the result of the last successful profile image download, if any.
75 // Otherwise, returns an empty bitmap. 75 // Otherwise, returns an empty bitmap.
76 virtual const gfx::ImageSkia& DownloadedProfileImage() const = 0; 76 virtual const gfx::ImageSkia& DownloadedProfileImage() const = 0;
77 }; 77 };
78 78
79 } // namespace chromeos 79 } // namespace chromeos
80 80
81 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_IMAGE_MANAGER_H_ 81 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_IMAGE_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_utils_browsertest.cc ('k') | chrome/browser/chromeos/login/user_image_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698