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

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

Issue 10693139: Remove #pragma once from chrome/browser/{tab_contents,password_manager,profiles,search_engines,noti… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
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 #pragma once
8 7
9 #include "base/string16.h" 8 #include "base/string16.h"
10 #include "ui/gfx/image/image.h" 9 #include "ui/gfx/image/image.h"
11 10
12 class FilePath; 11 class FilePath;
13 12
14 // 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
15 // ProfileInfoCache. 14 // ProfileInfoCache.
16 class ProfileInfoCacheObserver { 15 class ProfileInfoCacheObserver {
17 public: 16 public:
18 virtual ~ProfileInfoCacheObserver() {} 17 virtual ~ProfileInfoCacheObserver() {}
19 18
20 virtual void OnProfileAdded(const FilePath& profile_path) = 0; 19 virtual void OnProfileAdded(const FilePath& profile_path) = 0;
21 virtual void OnProfileWillBeRemoved(const FilePath& profile_path) = 0; 20 virtual void OnProfileWillBeRemoved(const FilePath& profile_path) = 0;
22 virtual void OnProfileWasRemoved(const FilePath& profile_path, 21 virtual void OnProfileWasRemoved(const FilePath& profile_path,
23 const string16& profile_name) = 0; 22 const string16& profile_name) = 0;
24 virtual void OnProfileNameChanged(const FilePath& profile_path, 23 virtual void OnProfileNameChanged(const FilePath& profile_path,
25 const string16& old_profile_name) = 0; 24 const string16& old_profile_name) = 0;
26 virtual void OnProfileAvatarChanged(const FilePath& profile_path) = 0; 25 virtual void OnProfileAvatarChanged(const FilePath& profile_path) = 0;
27 26
28 protected: 27 protected:
29 ProfileInfoCacheObserver() {} 28 ProfileInfoCacheObserver() {}
30 29
31 DISALLOW_COPY_AND_ASSIGN(ProfileInfoCacheObserver); 30 DISALLOW_COPY_AND_ASSIGN(ProfileInfoCacheObserver);
32 }; 31 };
33 32
34 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_OBSERVER_H_ 33 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_info_cache.h ('k') | chrome/browser/profiles/profile_info_cache_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698