Index: chrome/browser/profiles/profile_manager.h |
diff --git a/chrome/browser/profiles/profile_manager.h b/chrome/browser/profiles/profile_manager.h |
index c532a77033fd2779450d8d44fe16ed2c3fb363fc..55bee3123a0a39b2e8368b6115c3a52f6476f8b0 100644 |
--- a/chrome/browser/profiles/profile_manager.h |
+++ b/chrome/browser/profiles/profile_manager.h |
@@ -25,6 +25,7 @@ |
class FilePath; |
class NewProfileLauncher; |
+class ProfileInfoCache; |
class ProfileManagerObserver { |
public: |
@@ -147,6 +148,10 @@ class ProfileManager : public base::NonThreadSafe, |
// Register multi-profile related preferences in Local State. |
static void RegisterPrefs(PrefService* prefs); |
+ // Returns a ProfileInfoCache object which can be used to get information |
+ // about profiles without having to load them from disk. |
+ ProfileInfoCache& GetProfileInfoCache(); |
+ |
protected: |
// Does final initial actions. |
virtual void DoFinalInit(Profile* profile); |
@@ -204,6 +209,9 @@ class ProfileManager : public base::NonThreadSafe, |
typedef std::map<FilePath, linked_ptr<ProfileInfo> > ProfilesInfoMap; |
ProfilesInfoMap profiles_info_; |
+ // Object to cache various information about profiles. |
+ scoped_ptr<ProfileInfoCache> profile_info_cache_; |
+ |
DISALLOW_COPY_AND_ASSIGN(ProfileManager); |
}; |