| OLD | NEW |
| 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_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 | 7 |
| 8 #include "base/string16.h" | 8 #include "base/string16.h" |
| 9 #include "ui/gfx/image/image.h" | 9 #include "ui/gfx/image/image.h" |
| 10 | 10 |
| 11 namespace base { |
| 11 class FilePath; | 12 class FilePath; |
| 13 } |
| 12 | 14 |
| 13 // This class provides an Observer interface to watch for changes to the | 15 // This class provides an Observer interface to watch for changes to the |
| 14 // ProfileInfoCache. | 16 // ProfileInfoCache. |
| 15 class ProfileInfoCacheObserver { | 17 class ProfileInfoCacheObserver { |
| 16 public: | 18 public: |
| 17 virtual ~ProfileInfoCacheObserver() {} | 19 virtual ~ProfileInfoCacheObserver() {} |
| 18 | 20 |
| 19 virtual void OnProfileAdded(const FilePath& profile_path) = 0; | 21 virtual void OnProfileAdded(const base::FilePath& profile_path) = 0; |
| 20 virtual void OnProfileWillBeRemoved(const FilePath& profile_path) = 0; | 22 virtual void OnProfileWillBeRemoved(const base::FilePath& profile_path) = 0; |
| 21 virtual void OnProfileWasRemoved(const FilePath& profile_path, | 23 virtual void OnProfileWasRemoved(const base::FilePath& profile_path, |
| 22 const string16& profile_name) = 0; | 24 const string16& profile_name) = 0; |
| 23 virtual void OnProfileNameChanged(const FilePath& profile_path, | 25 virtual void OnProfileNameChanged(const base::FilePath& profile_path, |
| 24 const string16& old_profile_name) = 0; | 26 const string16& old_profile_name) = 0; |
| 25 virtual void OnProfileAvatarChanged(const FilePath& profile_path) = 0; | 27 virtual void OnProfileAvatarChanged(const base::FilePath& profile_path) = 0; |
| 26 | 28 |
| 27 protected: | 29 protected: |
| 28 ProfileInfoCacheObserver() {} | 30 ProfileInfoCacheObserver() {} |
| 29 | 31 |
| 30 DISALLOW_COPY_AND_ASSIGN(ProfileInfoCacheObserver); | 32 DISALLOW_COPY_AND_ASSIGN(ProfileInfoCacheObserver); |
| 31 }; | 33 }; |
| 32 | 34 |
| 33 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_OBSERVER_H_ | 35 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_OBSERVER_H_ |
| OLD | NEW |