Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Side by Side Diff: chrome/browser/profiles/profile_info_cache_observer.h

Issue 861053004: [Profiles] Send out less profile avatar related notifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mike nit Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "ui/gfx/image/image.h" 9 #include "ui/gfx/image/image.h"
10 10
11 namespace base { 11 namespace base {
12 class FilePath; 12 class FilePath;
13 } 13 }
14 14
15 // 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
16 // ProfileInfoCache. 16 // ProfileInfoCache.
17 class ProfileInfoCacheObserver { 17 class ProfileInfoCacheObserver {
18 public: 18 public:
19 virtual ~ProfileInfoCacheObserver() {} 19 virtual ~ProfileInfoCacheObserver() {}
20 20
21 virtual void OnProfileAdded(const base::FilePath& profile_path) {} 21 virtual void OnProfileAdded(const base::FilePath& profile_path) {}
22 virtual void OnProfileWillBeRemoved(const base::FilePath& profile_path) {} 22 virtual void OnProfileWillBeRemoved(const base::FilePath& profile_path) {}
23 virtual void OnProfileWasRemoved(const base::FilePath& profile_path, 23 virtual void OnProfileWasRemoved(const base::FilePath& profile_path,
24 const base::string16& profile_name) {} 24 const base::string16& profile_name) {}
25 virtual void OnProfileNameChanged(const base::FilePath& profile_path, 25 virtual void OnProfileNameChanged(const base::FilePath& profile_path,
26 const base::string16& old_profile_name) {} 26 const base::string16& old_profile_name) {}
27 virtual void OnProfileAvatarChanged(const base::FilePath& profile_path) {} 27 virtual void OnProfileAvatarChanged(const base::FilePath& profile_path) {}
28 virtual void OnProfileHighResAvatarLoaded(
29 const base::FilePath& profile_path) {}
28 virtual void OnProfileSigninRequiredChanged( 30 virtual void OnProfileSigninRequiredChanged(
29 const base::FilePath& profile_path) {} 31 const base::FilePath& profile_path) {}
30 virtual void OnProfileSupervisedUserIdChanged( 32 virtual void OnProfileSupervisedUserIdChanged(
31 const base::FilePath& profile_path) {} 33 const base::FilePath& profile_path) {}
32 34
33 protected: 35 protected:
34 ProfileInfoCacheObserver() {} 36 ProfileInfoCacheObserver() {}
35 37
36 DISALLOW_COPY_AND_ASSIGN(ProfileInfoCacheObserver); 38 DISALLOW_COPY_AND_ASSIGN(ProfileInfoCacheObserver);
37 }; 39 };
38 40
39 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_OBSERVER_H_ 41 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_info_cache.cc ('k') | chrome/browser/profiles/profile_info_cache_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698