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

Unified Diff: chrome/browser/profiles/profile_info_cache.h

Issue 7544031: Create AvatarMenuModel for the new avatar menu interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ready for review Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/profiles/profile_info_cache.h
diff --git a/chrome/browser/profiles/profile_info_cache.h b/chrome/browser/profiles/profile_info_cache.h
index a0c25e43cd84a376007203d3b5c178989b459f5a..919320d2ce6399a3d33ddce067201fb96f6d4af5 100644
--- a/chrome/browser/profiles/profile_info_cache.h
+++ b/chrome/browser/profiles/profile_info_cache.h
@@ -10,8 +10,10 @@
#include <vector>
#include "base/basictypes.h"
+#include "base/compiler_specific.h"
#include "base/file_path.h"
#include "base/string16.h"
+#include "chrome/browser/profiles/profile_info_interface.h"
namespace gfx {
class Image;
@@ -27,21 +29,25 @@ class PrefService;
// This class saves various information about profiles to local preferences.
// This cache can be used to display a list of profiles without having to
// actually load the profiles from disk.
-class ProfileInfoCache {
+class ProfileInfoCache : public ProfileInfoInterface {
public:
ProfileInfoCache(PrefService* prefs, const FilePath& user_data_dir);
- ~ProfileInfoCache();
+ virtual ~ProfileInfoCache();
void AddProfileToCache(const FilePath& profile_path,
const string16& name,
size_t icon_index);
void DeleteProfileFromCache(const FilePath& profile_path);
- size_t GetNumberOfProfiles() const;
- size_t GetIndexOfProfileWithPath(const FilePath& profile_path) const;
- string16 GetNameOfProfileAtIndex(size_t index) const;
- FilePath GetPathOfProfileAtIndex(size_t index) const;
- const gfx::Image& GetAvatarIconOfProfileAtIndex(size_t index) const;
+ // ProfileInfoInterface:
+ virtual size_t GetNumberOfProfiles() const OVERRIDE;
+ virtual size_t GetIndexOfProfileWithPath(
+ const FilePath& profile_path) const OVERRIDE;
+ virtual string16 GetNameOfProfileAtIndex(size_t index) const OVERRIDE;
+ virtual FilePath GetPathOfProfileAtIndex(size_t index) const OVERRIDE;
+ virtual const gfx::Image& GetAvatarIconOfProfileAtIndex(
+ size_t index) const OVERRIDE;
+
size_t GetAvatarIconIndexOfProfileAtIndex(size_t index) const;
void SetNameOfProfileAtIndex(size_t index, const string16& name);
« no previous file with comments | « chrome/browser/profiles/avatar_menu_model_unittest.cc ('k') | chrome/browser/profiles/profile_info_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698