| 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" | 9 #include "ui/gfx/image/image.h" |
| 10 | 10 |
| 11 class FilePath; | 11 class FilePath; |
| 12 | 12 |
| 13 // 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 |
| 14 // ProfileInfoCache. | 14 // ProfileInfoCache. |
| 15 class ProfileInfoCacheObserver { | 15 class ProfileInfoCacheObserver { |
| 16 public: | 16 public: |
| 17 virtual ~ProfileInfoCacheObserver() {} | 17 virtual ~ProfileInfoCacheObserver() {} |
| 18 | 18 |
| 19 virtual void OnProfileAdded( | 19 virtual void OnProfileAdded(const FilePath& profile_path) = 0; |
| 20 const string16& profile_name, | 20 virtual void OnProfileWillBeRemoved(const FilePath& profile_path) = 0; |
| 21 const string16& profile_base_dir, | 21 virtual void OnProfileWasRemoved(const FilePath& profile_path, |
| 22 const FilePath& profile_path, | 22 const string16& profile_name) = 0; |
| 23 const gfx::Image* avatar_image) = 0; | 23 virtual void OnProfileNameChanged(const FilePath& profile_path, |
| 24 virtual void OnProfileWillBeRemoved( | 24 const string16& old_profile_name) = 0; |
| 25 const string16& profile_name) = 0; | 25 virtual void OnProfileAvatarChanged(const FilePath& profile_path) = 0; |
| 26 virtual void OnProfileWasRemoved( | |
| 27 const string16& profile_name) = 0; | |
| 28 virtual void OnProfileNameChanged( | |
| 29 const string16& old_profile_name, | |
| 30 const string16& new_profile_name) = 0; | |
| 31 virtual void OnProfileAvatarChanged( | |
| 32 const string16& profile_name, | |
| 33 const string16& profile_base_dir, | |
| 34 const FilePath& profile_path, | |
| 35 const gfx::Image* avatar_image) = 0; | |
| 36 | 26 |
| 37 protected: | 27 protected: |
| 38 ProfileInfoCacheObserver() {} | 28 ProfileInfoCacheObserver() {} |
| 39 | 29 |
| 40 DISALLOW_COPY_AND_ASSIGN(ProfileInfoCacheObserver); | 30 DISALLOW_COPY_AND_ASSIGN(ProfileInfoCacheObserver); |
| 41 }; | 31 }; |
| 42 | 32 |
| 43 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_OBSERVER_H_ | 33 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_OBSERVER_H_ |
| OLD | NEW |