OLD | NEW |
---|---|
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 | |
9 // This class provides an Observer interface to watch for changes to the | 11 // This class provides an Observer interface to watch for changes to the |
10 // ProfileInfoCache. | 12 // ProfileInfoCache. |
11 class ProfileInfoCacheObserver { | 13 class ProfileInfoCacheObserver { |
12 public: | 14 public: |
13 virtual ~ProfileInfoCacheObserver() {} | 15 virtual ~ProfileInfoCacheObserver() {} |
14 | 16 |
15 virtual void OnProfileAdded( | 17 virtual void OnProfileAdded( |
16 const string16& profile_name, | 18 const string16& profile_name, |
17 const string16& profile_base_dir) = 0; | 19 const string16& profile_base_dir, |
20 const string16& profile_path, | |
21 const gfx::Image* avatar_image) = 0; | |
SteveT
2011/12/03 03:19:15
robertshield: Add a comment to this method indicat
| |
18 virtual void OnProfileRemoved( | 22 virtual void OnProfileRemoved( |
19 const string16& profile_name) = 0; | 23 const string16& profile_name) = 0; |
20 virtual void OnProfileNameChanged( | 24 virtual void OnProfileNameChanged( |
21 const string16& old_profile_name, | 25 const string16& old_profile_name, |
22 const string16& new_profile_name) = 0; | 26 const string16& new_profile_name) = 0; |
27 virtual void OnProfileAvatarChanged( | |
28 const string16& profile_name, | |
29 const string16& profile_base_dir, | |
30 const string16& profile_path, | |
31 const gfx::Image* avatar_image) = 0; | |
SteveT
2011/12/03 03:19:15
robertshield: ditto
stevet: ditto
| |
23 | 32 |
24 protected: | 33 protected: |
25 ProfileInfoCacheObserver() {} | 34 ProfileInfoCacheObserver() {} |
26 | 35 |
27 DISALLOW_COPY_AND_ASSIGN(ProfileInfoCacheObserver); | 36 DISALLOW_COPY_AND_ASSIGN(ProfileInfoCacheObserver); |
28 }; | 37 }; |
29 | 38 |
30 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_OBSERVER_H_ | 39 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_OBSERVER_H_ |
OLD | NEW |