| 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 | 227 |
| 228 // Creates a new profile asynchronously by calling into the profile's | 228 // Creates a new profile asynchronously by calling into the profile's |
| 229 // asynchronous profile creation method. Virtual so that unittests can return | 229 // asynchronous profile creation method. Virtual so that unittests can return |
| 230 // a TestingProfile instead of the Profile's result. | 230 // a TestingProfile instead of the Profile's result. |
| 231 virtual Profile* CreateProfileAsyncHelper(const base::FilePath& path, | 231 virtual Profile* CreateProfileAsyncHelper(const base::FilePath& path, |
| 232 Delegate* delegate); | 232 Delegate* delegate); |
| 233 | 233 |
| 234 private: | 234 private: |
| 235 friend class TestingProfileManager; | 235 friend class TestingProfileManager; |
| 236 FRIEND_TEST_ALL_PREFIXES(ProfileManagerBrowserTest, DeleteAllProfiles); | 236 FRIEND_TEST_ALL_PREFIXES(ProfileManagerBrowserTest, DeleteAllProfiles); |
| 237 FRIEND_TEST_ALL_PREFIXES(ProfileManagerBrowserTest, SwitchToProfile); |
| 237 | 238 |
| 238 // This struct contains information about profiles which are being loaded or | 239 // This struct contains information about profiles which are being loaded or |
| 239 // were loaded. | 240 // were loaded. |
| 240 struct ProfileInfo { | 241 struct ProfileInfo { |
| 241 ProfileInfo(Profile* profile, bool created); | 242 ProfileInfo(Profile* profile, bool created); |
| 242 | 243 |
| 243 ~ProfileInfo(); | 244 ~ProfileInfo(); |
| 244 | 245 |
| 245 scoped_ptr<Profile> profile; | 246 scoped_ptr<Profile> profile; |
| 246 // Whether profile has been fully loaded (created and initialized). | 247 // Whether profile has been fully loaded (created and initialized). |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 class ProfileManagerWithoutInit : public ProfileManager { | 374 class ProfileManagerWithoutInit : public ProfileManager { |
| 374 public: | 375 public: |
| 375 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir); | 376 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir); |
| 376 | 377 |
| 377 protected: | 378 protected: |
| 378 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} | 379 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} |
| 379 virtual void DoFinalInitLogging(Profile*) OVERRIDE {} | 380 virtual void DoFinalInitLogging(Profile*) OVERRIDE {} |
| 380 }; | 381 }; |
| 381 | 382 |
| 382 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ | 383 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ |
| OLD | NEW |