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

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

Issue 33753002: Sooper experimental refactoring of the profile info cache. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 7 years, 2 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
« no previous file with comments | « chrome/browser/profiles/profile_info_entry.cc ('k') | chrome/browser/profiles/profile_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_info_interface.h
diff --git a/chrome/browser/profiles/profile_info_interface.h b/chrome/browser/profiles/profile_info_interface.h
index 85d9e7eef5781d47ba428570f520d7d2f8f635a9..ff0410dbf044111a75c1ecc04e50e1899f8fd231 100644
--- a/chrome/browser/profiles/profile_info_interface.h
+++ b/chrome/browser/profiles/profile_info_interface.h
@@ -8,6 +8,8 @@
#include "base/files/file_path.h"
#include "base/strings/string16.h"
+class ProfileInfoEntry;
+
namespace gfx {
class Image;
}
@@ -19,44 +21,58 @@ class ProfileInfoInterface {
public:
virtual size_t GetNumberOfProfiles() const = 0;
- virtual size_t GetIndexOfProfileWithPath(
- const base::FilePath& profile_path) const = 0;
+ virtual std::vector<ProfileInfoEntry> GetProfilesSortedByName() const = 0;
+
+ //virtual bool GetInfoForProfile(const FilePath& path,
+ // ProfileInfoEntry* entry) const = 0;
+
+ virtual const gfx::Image& GetAvatarIconOfProfile(
+ const base::FilePath& profile_path) const = 0;
+ virtual const gfx::Image* GetGAIAPictureOfProfile(
+ const base::FilePath& profile_path) const = 0;
+ //void SetGAIAPictureOfProfile(const base::FilePath& profile_path, const gfx::Image* image);
+
+
+ // *************** Things i am deleting with fire
+
+ //virtual size_t GetIndexOfProfileWithPath(
+ // const base::FilePath& profile_path) const = 0;
- virtual string16 GetNameOfProfileAtIndex(size_t index) const = 0;
+ //virtual string16 GetNameOfProfileAtIndex(size_t index) const = 0;
- virtual string16 GetShortcutNameOfProfileAtIndex(size_t index) const = 0;
+ //virtual string16 GetShortcutNameOfProfileAtIndex(size_t index) const = 0;
- virtual base::FilePath GetPathOfProfileAtIndex(size_t index) const = 0;
+ //virtual base::FilePath GetPathOfProfileAtIndex(size_t index) const = 0;
- virtual string16 GetUserNameOfProfileAtIndex(size_t index) const = 0;
+ //virtual string16 GetUserNameOfProfileAtIndex(size_t index) const = 0;
- virtual const gfx::Image& GetAvatarIconOfProfileAtIndex(
- size_t index) const = 0;
+ //virtual const gfx::Image& GetAvatarIconOfProfileAtIndex(
+ // size_t index) const = 0;
// Returns true if the profile at the given index is currently running any
// background apps.
- virtual bool GetBackgroundStatusOfProfileAtIndex(
- size_t index) const = 0;
+ //virtual bool GetBackgroundStatusOfProfileAtIndex(
+ // size_t index) const = 0;
- virtual string16 GetGAIANameOfProfileAtIndex(size_t index) const = 0;
+ //virtual string16 GetGAIANameOfProfileAtIndex(size_t index) const = 0;
- virtual string16 GetGAIAGivenNameOfProfileAtIndex(size_t index) const = 0;
+ //virtual string16 GetGAIAGivenNameOfProfileAtIndex(size_t index) const = 0;
// Checks if the GAIA name should be used as the profile's name.
- virtual bool IsUsingGAIANameOfProfileAtIndex(size_t index) const = 0;
+ //virtual bool IsUsingGAIANameOfProfileAtIndex(size_t index) const = 0;
- virtual const gfx::Image* GetGAIAPictureOfProfileAtIndex(
- size_t index) const = 0;
+ //virtual const gfx::Image* GetGAIAPictureOfProfileAtIndex(
+ // size_t index) const = 0;
// Checks if the GAIA picture should be used as the profile's avatar icon.
- virtual bool IsUsingGAIAPictureOfProfileAtIndex(size_t index) const = 0;
+ //virtual bool IsUsingGAIAPictureOfProfileAtIndex(size_t index) const = 0;
- virtual bool ProfileIsManagedAtIndex(size_t index) const = 0;
+ //virtual bool ProfileIsManagedAtIndex(size_t index) const = 0;
- virtual std::string GetManagedUserIdOfProfileAtIndex(size_t index) const = 0;
+ //virtual std::string GetManagedUserIdOfProfileAtIndex(size_t index) const = 0;
// This profile is associated with an account but has been signed-out.
- virtual bool ProfileIsSigninRequiredAtIndex(size_t index) const = 0;
+ //virtual bool ProfileIsSigninRequiredAtIndex(size_t index) const = 0;
// Profile is known to be ephemeral and should be deleted when closed.
virtual bool ProfileIsEphemeralAtIndex(size_t index) const = 0;
« no previous file with comments | « chrome/browser/profiles/profile_info_entry.cc ('k') | chrome/browser/profiles/profile_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698