Index: chrome/browser/profiles/profile_manager.h |
=================================================================== |
--- chrome/browser/profiles/profile_manager.h (revision 88807) |
+++ chrome/browser/profiles/profile_manager.h (working copy) |
@@ -35,6 +35,8 @@ |
// If true, delete the observer after the profile has been created. Default |
// is false. |
virtual bool DeleteAfterCreation(); |
+ |
+ virtual ~ProfileManagerObserver() {} |
}; |
class ProfileManager : public base::NonThreadSafe, |
@@ -62,6 +64,12 @@ |
// 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 +181,14 @@ |
// 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 |