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

Side by Side Diff: chrome/browser/profiles/profile_info_cache_observer.h

Issue 8785006: Badge Windows profile shortcuts with multi-user avatar. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Merged to TOT. Fixed cpu's nits. Created 9 years 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) 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_PROFILES_PROFILE_INFO_CACHE_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_OBSERVER_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_OBSERVER_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_OBSERVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ui/gfx/image/image.h"
10
11 class FilePath;
12
9 // This class provides an Observer interface to watch for changes to the 13 // This class provides an Observer interface to watch for changes to the
10 // ProfileInfoCache. 14 // ProfileInfoCache.
11 class ProfileInfoCacheObserver { 15 class ProfileInfoCacheObserver {
12 public: 16 public:
13 virtual ~ProfileInfoCacheObserver() {} 17 virtual ~ProfileInfoCacheObserver() {}
14 18
15 virtual void OnProfileAdded( 19 virtual void OnProfileAdded(
16 const string16& profile_name, 20 const string16& profile_name,
17 const string16& profile_base_dir) = 0; 21 const string16& profile_base_dir,
22 const FilePath& profile_path,
23 const gfx::Image* avatar_image) = 0;
18 virtual void OnProfileRemoved( 24 virtual void OnProfileRemoved(
19 const string16& profile_name) = 0; 25 const string16& profile_name) = 0;
20 virtual void OnProfileNameChanged( 26 virtual void OnProfileNameChanged(
21 const string16& old_profile_name, 27 const string16& old_profile_name,
22 const string16& new_profile_name) = 0; 28 const string16& new_profile_name) = 0;
29 virtual void OnProfileAvatarChanged(
30 const string16& profile_name,
31 const string16& profile_base_dir,
32 const FilePath& profile_path,
33 const gfx::Image* avatar_image) = 0;
23 34
24 protected: 35 protected:
25 ProfileInfoCacheObserver() {} 36 ProfileInfoCacheObserver() {}
26 37
27 DISALLOW_COPY_AND_ASSIGN(ProfileInfoCacheObserver); 38 DISALLOW_COPY_AND_ASSIGN(ProfileInfoCacheObserver);
28 }; 39 };
29 40
30 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_OBSERVER_H_ 41 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_info_cache.cc ('k') | chrome/browser/profiles/profile_shortcut_manager_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698