| 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 // Directories are named "profile_1", "profile_2", etc., in sequence of | 166 // Directories are named "profile_1", "profile_2", etc., in sequence of |
| 167 // creation. (Because directories can be removed, however, it may be the case | 167 // creation. (Because directories can be removed, however, it may be the case |
| 168 // that at some point the list of numbered profiles is not continuous.) | 168 // that at some point the list of numbered profiles is not continuous.) |
| 169 static void CreateMultiProfileAsync( | 169 static void CreateMultiProfileAsync( |
| 170 const string16& name, | 170 const string16& name, |
| 171 const string16& icon_url, | 171 const string16& icon_url, |
| 172 const CreateCallback& callback, | 172 const CreateCallback& callback, |
| 173 chrome::HostDesktopType desktop_type); | 173 chrome::HostDesktopType desktop_type); |
| 174 | 174 |
| 175 // Register multi-profile related preferences in Local State. | 175 // Register multi-profile related preferences in Local State. |
| 176 static void RegisterPrefs(PrefService* prefs); | 176 static void RegisterPrefs(PrefServiceSimple* prefs); |
| 177 | 177 |
| 178 // Returns a ProfileInfoCache object which can be used to get information | 178 // Returns a ProfileInfoCache object which can be used to get information |
| 179 // about profiles without having to load them from disk. | 179 // about profiles without having to load them from disk. |
| 180 ProfileInfoCache& GetProfileInfoCache(); | 180 ProfileInfoCache& GetProfileInfoCache(); |
| 181 | 181 |
| 182 // Returns a ProfileShortcut Manager that enables the caller to create | 182 // Returns a ProfileShortcut Manager that enables the caller to create |
| 183 // profile specfic desktop shortcuts. | 183 // profile specfic desktop shortcuts. |
| 184 ProfileShortcutManager* profile_shortcut_manager(); | 184 ProfileShortcutManager* profile_shortcut_manager(); |
| 185 | 185 |
| 186 // Schedules the profile at the given path to be deleted on shutdown. | 186 // Schedules the profile at the given path to be deleted on shutdown. |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 class ProfileManagerWithoutInit : public ProfileManager { | 341 class ProfileManagerWithoutInit : public ProfileManager { |
| 342 public: | 342 public: |
| 343 explicit ProfileManagerWithoutInit(const FilePath& user_data_dir); | 343 explicit ProfileManagerWithoutInit(const FilePath& user_data_dir); |
| 344 | 344 |
| 345 protected: | 345 protected: |
| 346 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} | 346 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} |
| 347 virtual void DoFinalInitLogging(Profile*) OVERRIDE {} | 347 virtual void DoFinalInitLogging(Profile*) OVERRIDE {} |
| 348 }; | 348 }; |
| 349 | 349 |
| 350 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ | 350 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ |
| OLD | NEW |