OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This class keeps track of the currently-active profiles in the runtime. | 5 // This class keeps track of the currently-active profiles in the runtime. |
6 | 6 |
7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ | 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ |
8 #define CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ | 8 #define CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 // Indicates that a user has logged in and that the profile specified | 197 // Indicates that a user has logged in and that the profile specified |
198 // in the --login-profile command line argument should be used as the | 198 // in the --login-profile command line argument should be used as the |
199 // default. | 199 // default. |
200 bool logged_in_; | 200 bool logged_in_; |
201 | 201 |
202 // Maps profile path to ProfileInfo (if profile has been created). Use | 202 // Maps profile path to ProfileInfo (if profile has been created). Use |
203 // RegisterProfile() to add into this map. | 203 // RegisterProfile() to add into this map. |
204 typedef std::map<FilePath, linked_ptr<ProfileInfo> > ProfilesInfoMap; | 204 typedef std::map<FilePath, linked_ptr<ProfileInfo> > ProfilesInfoMap; |
205 ProfilesInfoMap profiles_info_; | 205 ProfilesInfoMap profiles_info_; |
206 | 206 |
| 207 // Object to cache various information about profiles. |
| 208 scoped_ptr<ProfileInfoCache> profile_info_cache_; |
| 209 |
207 DISALLOW_COPY_AND_ASSIGN(ProfileManager); | 210 DISALLOW_COPY_AND_ASSIGN(ProfileManager); |
208 }; | 211 }; |
209 | 212 |
210 // Same as the ProfileManager, but doesn't initialize some services of the | 213 // Same as the ProfileManager, but doesn't initialize some services of the |
211 // profile. This one is useful in unittests. | 214 // profile. This one is useful in unittests. |
212 class ProfileManagerWithoutInit : public ProfileManager { | 215 class ProfileManagerWithoutInit : public ProfileManager { |
213 protected: | 216 protected: |
214 virtual void DoFinalInit(Profile*) {} | 217 virtual void DoFinalInit(Profile*) {} |
215 }; | 218 }; |
216 | 219 |
217 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ | 220 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ |
OLD | NEW |