OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_OBSERVER_H_ |
| 7 #pragma once |
| 8 |
| 9 // This class provides an Observer interface to watch for changes to the |
| 10 // ProfileInfoCache. |
| 11 class ProfileInfoCacheObserver { |
| 12 public: |
| 13 virtual ~ProfileInfoCacheObserver() {} |
| 14 |
| 15 virtual void OnProfileAdded( |
| 16 const string16& profile_name, |
| 17 const string16& profile_base_dir) = 0; |
| 18 virtual void OnProfileRemoved( |
| 19 const string16& profile_name) = 0; |
| 20 virtual void OnProfileNameChanged( |
| 21 const string16& old_profile_name, |
| 22 const string16& new_profile_name) = 0; |
| 23 |
| 24 protected: |
| 25 ProfileInfoCacheObserver() {} |
| 26 |
| 27 DISALLOW_COPY_AND_ASSIGN(ProfileInfoCacheObserver); |
| 28 }; |
| 29 |
| 30 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_OBSERVER_H_ |
OLD | NEW |