OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 9 |
10 #include <list> | 10 #include <list> |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 virtual ProfileShortcutManagerWin* CreateShortcutManager(); | 215 virtual ProfileShortcutManagerWin* CreateShortcutManager(); |
216 #endif | 216 #endif |
217 | 217 |
218 private: | 218 private: |
219 friend class TestingProfileManager; | 219 friend class TestingProfileManager; |
220 FRIEND_TEST_ALL_PREFIXES(ProfileManagerBrowserTest, DeleteAllProfiles); | 220 FRIEND_TEST_ALL_PREFIXES(ProfileManagerBrowserTest, DeleteAllProfiles); |
221 | 221 |
222 // This struct contains information about profiles which are being loaded or | 222 // This struct contains information about profiles which are being loaded or |
223 // were loaded. | 223 // were loaded. |
224 struct ProfileInfo { | 224 struct ProfileInfo { |
225 ProfileInfo(Profile* profile, bool created) | 225 ProfileInfo(Profile* profile, bool created); |
226 : profile(profile), created(created) { | |
227 } | |
228 | 226 |
229 ~ProfileInfo(); | 227 ~ProfileInfo(); |
230 | 228 |
231 scoped_ptr<Profile> profile; | 229 scoped_ptr<Profile> profile; |
232 // Whether profile has been fully loaded (created and initialized). | 230 // Whether profile has been fully loaded (created and initialized). |
233 bool created; | 231 bool created; |
234 // List of callbacks to run when profile initialization is done. Note, when | 232 // List of callbacks to run when profile initialization is done. Note, when |
235 // profile is fully loaded this vector will be empty. | 233 // profile is fully loaded this vector will be empty. |
236 std::vector<CreateCallback> callbacks; | 234 std::vector<CreateCallback> callbacks; |
237 | 235 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 class ProfileManagerWithoutInit : public ProfileManager { | 346 class ProfileManagerWithoutInit : public ProfileManager { |
349 public: | 347 public: |
350 explicit ProfileManagerWithoutInit(const FilePath& user_data_dir); | 348 explicit ProfileManagerWithoutInit(const FilePath& user_data_dir); |
351 | 349 |
352 protected: | 350 protected: |
353 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} | 351 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} |
354 virtual void DoFinalInitLogging(Profile*) OVERRIDE {} | 352 virtual void DoFinalInitLogging(Profile*) OVERRIDE {} |
355 }; | 353 }; |
356 | 354 |
357 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ | 355 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ |
OLD | NEW |