Chromium Code Reviews
|
| 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 ProfileInfoCacheObserver() {} | |
|
grt (UTC plus 2)
2011/11/18 16:02:15
google style says ctor must be protected.
Miranda Callahan
2011/11/18 19:00:36
Done.
| |
| 14 | |
| 15 virtual void OnProfileAdded(string16 profile_name, | |
|
grt (UTC plus 2)
2011/11/18 16:02:15
can these not be passed as const ref?
Miranda Callahan
2011/11/18 19:00:36
Done.
| |
| 16 string16 profile_base_dir) = 0; | |
| 17 virtual void OnProfileRemoved(string16 profile_name) = 0; | |
| 18 virtual void OnProfileNameChanged(string16 old_profile_name, | |
| 19 string16 new_profile_name) = 0; | |
| 20 | |
| 21 protected: | |
| 22 virtual ~ProfileInfoCacheObserver() {} | |
|
grt (UTC plus 2)
2011/11/18 16:02:15
this should be public unless you're really trying
Miranda Callahan
2011/11/18 19:00:36
Done.
| |
| 23 | |
| 24 DISALLOW_COPY_AND_ASSIGN(ProfileInfoCacheObserver); | |
| 25 }; | |
| 26 | |
| 27 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_OBSERVER_H_ | |
| OLD | NEW |