| 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 // This struct contains information about profiles which are being loaded or | 230 // This struct contains information about profiles which are being loaded or |
| 231 // were loaded. | 231 // were loaded. |
| 232 struct ProfileInfo { | 232 struct ProfileInfo { |
| 233 ProfileInfo(Profile* profile, bool created); | 233 ProfileInfo(Profile* profile, bool created); |
| 234 | 234 |
| 235 ~ProfileInfo(); | 235 ~ProfileInfo(); |
| 236 | 236 |
| 237 scoped_ptr<Profile> profile; | 237 scoped_ptr<Profile> profile; |
| 238 // Whether profile has been fully loaded (created and initialized). | 238 // Whether profile has been fully loaded (created and initialized). |
| 239 bool created; | 239 bool created; |
| 240 // Whether or not this profile should have a shortcut. | |
| 241 bool create_shortcut; | |
| 242 // List of callbacks to run when profile initialization is done. Note, when | 240 // List of callbacks to run when profile initialization is done. Note, when |
| 243 // profile is fully loaded this vector will be empty. | 241 // profile is fully loaded this vector will be empty. |
| 244 std::vector<CreateCallback> callbacks; | 242 std::vector<CreateCallback> callbacks; |
| 245 | 243 |
| 246 private: | 244 private: |
| 247 DISALLOW_COPY_AND_ASSIGN(ProfileInfo); | 245 DISALLOW_COPY_AND_ASSIGN(ProfileInfo); |
| 248 }; | 246 }; |
| 249 | 247 |
| 250 // Returns the profile of the active user and / or the off the record profile | 248 // Returns the profile of the active user and / or the off the record profile |
| 251 // if needed. This adds the profile to the ProfileManager if it doesn't | 249 // if needed. This adds the profile to the ProfileManager if it doesn't |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 class ProfileManagerWithoutInit : public ProfileManager { | 372 class ProfileManagerWithoutInit : public ProfileManager { |
| 375 public: | 373 public: |
| 376 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir); | 374 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir); |
| 377 | 375 |
| 378 protected: | 376 protected: |
| 379 void DoFinalInitForServices(Profile*, bool) override {} | 377 void DoFinalInitForServices(Profile*, bool) override {} |
| 380 void DoFinalInitLogging(Profile*) override {} | 378 void DoFinalInitLogging(Profile*) override {} |
| 381 }; | 379 }; |
| 382 | 380 |
| 383 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ | 381 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ |
| OLD | NEW |