Index: chrome/browser/profiles/profile_manager.h |
diff --git a/chrome/browser/profiles/profile_manager.h b/chrome/browser/profiles/profile_manager.h |
index d06f700cdd8d1a09658ada2c1643f98a4a2ee655..4a2d16a0452f4e69de61313cd7ad4b9f9453cb17 100644 |
--- a/chrome/browser/profiles/profile_manager.h |
+++ b/chrome/browser/profiles/profile_manager.h |
@@ -62,6 +62,12 @@ class ProfileManager : public base::NonThreadSafe, |
// otherwise it will create and manage it. |
Profile* GetProfile(const FilePath& profile_dir); |
+ // Multi-profile support. |
+ size_t GetNumberOfProfiles(); |
+ string16 GetNameOfProfileAtIndex(size_t index); |
+ FilePath GetFilePathOfProfileAtIndex(size_t index, |
+ const FilePath& user_data_dir); |
+ |
// Explicit asynchronous creation of the profile. |observer| is called |
// when profile is created. If profile has already been created, observer |
// is called immediately. Should be called on the UI thread. |
@@ -173,6 +179,14 @@ class ProfileManager : public base::NonThreadSafe, |
// entry. |
ProfileInfo* RegisterProfile(Profile* profile, bool created); |
+ typedef std::pair<FilePath, string16> ProfilePathAndName; |
+ typedef std::vector<ProfilePathAndName> ProfilePathAndNames; |
+ ProfilePathAndNames GetSortedProfilesFromDirectoryMap(); |
+ |
+ static bool CompareProfilePathAndName( |
+ const ProfileManager::ProfilePathAndName& pair1, |
+ const ProfileManager::ProfilePathAndName& pair2); |
+ |
NotificationRegistrar registrar_; |
// Indicates that a user has logged in and that the profile specified |