Chromium Code Reviews| 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 180 // Returns a ProfileShortcut Manager that enables the caller to create | 180 // Returns a ProfileShortcut Manager that enables the caller to create |
| 181 // profile specfic desktop shortcuts. | 181 // profile specfic desktop shortcuts. |
| 182 ProfileShortcutManager* profile_shortcut_manager(); | 182 ProfileShortcutManager* profile_shortcut_manager(); |
| 183 | 183 |
| 184 // Schedules the profile at the given path to be deleted on shutdown. If we're | 184 // Schedules the profile at the given path to be deleted on shutdown. If we're |
| 185 // deleting the last profile, a new one will be created in its place, and in | 185 // deleting the last profile, a new one will be created in its place, and in |
| 186 // that case the callback will be called when profile creation is complete. | 186 // that case the callback will be called when profile creation is complete. |
| 187 void ScheduleProfileForDeletion(const base::FilePath& profile_dir, | 187 void ScheduleProfileForDeletion(const base::FilePath& profile_dir, |
| 188 const CreateCallback& callback); | 188 const CreateCallback& callback); |
| 189 | 189 |
| 190 // Called on start-up if there are any stale ephemeral profiles to be deleted. | |
| 191 // This can be the case if the browser has crashed and the clean-up code had | |
| 192 // no chance to run then. | |
| 193 static void CleanUpStaleProfiles(std::vector<base::FilePath> profiles); | |
|
jochen (gone - plz use gerrit)
2013/11/05 13:03:25
why not const ref?
I think profile_paths would be
pastarmovj
2013/11/05 16:11:02
Done.
| |
| 194 | |
| 190 // Autoloads profiles if they are running background apps. | 195 // Autoloads profiles if they are running background apps. |
| 191 void AutoloadProfiles(); | 196 void AutoloadProfiles(); |
| 192 | 197 |
| 193 // Sign-Out a profile against use until re-authentication. | 198 // Sign-Out a profile against use until re-authentication. |
| 194 void SignOutProfile(Profile* profile); | 199 void SignOutProfile(Profile* profile); |
| 195 | 200 |
| 196 // Initializes user prefs of |profile|. This includes profile name and | 201 // Initializes user prefs of |profile|. This includes profile name and |
| 197 // avatar values. | 202 // avatar values. |
| 198 void InitProfileUserPrefs(Profile* profile); | 203 void InitProfileUserPrefs(Profile* profile); |
| 199 | 204 |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 360 class ProfileManagerWithoutInit : public ProfileManager { | 365 class ProfileManagerWithoutInit : public ProfileManager { |
| 361 public: | 366 public: |
| 362 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir); | 367 explicit ProfileManagerWithoutInit(const base::FilePath& user_data_dir); |
| 363 | 368 |
| 364 protected: | 369 protected: |
| 365 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} | 370 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} |
| 366 virtual void DoFinalInitLogging(Profile*) OVERRIDE {} | 371 virtual void DoFinalInitLogging(Profile*) OVERRIDE {} |
| 367 }; | 372 }; |
| 368 | 373 |
| 369 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ | 374 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ |
| OLD | NEW |