| 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 <stddef.h> | 10 #include <stddef.h> |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 // last non-supervised profile. In the Mac, loads the next non-supervised | 315 // last non-supervised profile. In the Mac, loads the next non-supervised |
| 316 // profile if the profile to be deleted is the active profile. | 316 // profile if the profile to be deleted is the active profile. |
| 317 void EnsureActiveProfileExistsBeforeDeletion( | 317 void EnsureActiveProfileExistsBeforeDeletion( |
| 318 const CreateCallback& callback, | 318 const CreateCallback& callback, |
| 319 const base::FilePath& profile_dir); | 319 const base::FilePath& profile_dir); |
| 320 | 320 |
| 321 // Schedules the profile at the given path to be deleted on shutdown, | 321 // Schedules the profile at the given path to be deleted on shutdown, |
| 322 // and marks the new profile as active. | 322 // and marks the new profile as active. |
| 323 void FinishDeletingProfile(const base::FilePath& profile_dir, | 323 void FinishDeletingProfile(const base::FilePath& profile_dir, |
| 324 const base::FilePath& new_active_profile_dir); | 324 const base::FilePath& new_active_profile_dir); |
| 325 void OnLoadProfileForProfileDeletion(const base::FilePath& profile_dir, |
| 326 Profile* profile); |
| 325 #endif | 327 #endif |
| 326 | 328 |
| 327 // Registers profile with given info. Returns pointer to created ProfileInfo | 329 // Registers profile with given info. Returns pointer to created ProfileInfo |
| 328 // entry. | 330 // entry. |
| 329 ProfileInfo* RegisterProfile(Profile* profile, bool created); | 331 ProfileInfo* RegisterProfile(Profile* profile, bool created); |
| 330 | 332 |
| 331 // Returns ProfileInfo associated with given |path|, registered earlier with | 333 // Returns ProfileInfo associated with given |path|, registered earlier with |
| 332 // RegisterProfile. | 334 // RegisterProfile. |
| 333 ProfileInfo* GetProfileInfoByPath(const base::FilePath& path) const; | 335 ProfileInfo* GetProfileInfoByPath(const base::FilePath& path) const; |
| 334 | 336 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 class ProfileManagerWithoutInit : public ProfileManager { | 452 class ProfileManagerWithoutInit : public ProfileManager { |
| 451 public: | 453 public: |
| 452 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir); | 454 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir); |
| 453 | 455 |
| 454 protected: | 456 protected: |
| 455 void DoFinalInitForServices(Profile*, bool) override {} | 457 void DoFinalInitForServices(Profile*, bool) override {} |
| 456 void DoFinalInitLogging(Profile*) override {} | 458 void DoFinalInitLogging(Profile*) override {} |
| 457 }; | 459 }; |
| 458 | 460 |
| 459 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ | 461 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ |
| OLD | NEW |