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

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

Issue 10832336: chromeos: Use gfx::ImageSkia instead of SkBitmap for downloaded profile image. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 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 "ash/desktop_background/desktop_background_resources.h" 10 #include "ash/desktop_background/desktop_background_resources.h"
11 #include "base/memory/singleton.h" 11 #include "base/memory/singleton.h"
12 #include "base/time.h" 12 #include "base/time.h"
13 #include "chrome/browser/chromeos/login/user.h" 13 #include "chrome/browser/chromeos/login/user.h"
14 #include "chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handle r.h" 14 #include "chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handle r.h"
15 15
16 class SkBitmap;
17 class FilePath; 16 class FilePath;
18 class PrefService; 17 class PrefService;
19 18
19 namespace gfx {
20 class ImageSkia;
21 }
22
20 namespace chromeos { 23 namespace chromeos {
21 24
22 class RemoveUserDelegate; 25 class RemoveUserDelegate;
23 class UserImage; 26 class UserImage;
24 27
25 // Base class for UserManagerImpl - provides a mechanism for discovering users 28 // Base class for UserManagerImpl - provides a mechanism for discovering users
26 // who have logged into this Chrome OS device before and updating that list. 29 // who have logged into this Chrome OS device before and updating that list.
27 class UserManager { 30 class UserManager {
28 public: 31 public:
29 // Interface that observers of UserManager must implement in order 32 // Interface that observers of UserManager must implement in order
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // or restart after crash. 233 // or restart after crash.
231 virtual bool IsSessionStarted() const = 0; 234 virtual bool IsSessionStarted() const = 0;
232 235
233 virtual void AddObserver(Observer* obs) = 0; 236 virtual void AddObserver(Observer* obs) = 0;
234 virtual void RemoveObserver(Observer* obs) = 0; 237 virtual void RemoveObserver(Observer* obs) = 0;
235 238
236 virtual void NotifyLocalStateChanged() = 0; 239 virtual void NotifyLocalStateChanged() = 0;
237 240
238 // Returns the result of the last successful profile image download, if any. 241 // Returns the result of the last successful profile image download, if any.
239 // Otherwise, returns an empty bitmap. 242 // Otherwise, returns an empty bitmap.
240 virtual const SkBitmap& DownloadedProfileImage() const = 0; 243 virtual const gfx::ImageSkia& DownloadedProfileImage() const = 0;
241 }; 244 };
242 245
243 } // namespace chromeos 246 } // namespace chromeos
244 247
245 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ 248 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/mock_user_manager.h ('k') | chrome/browser/chromeos/login/user_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698