| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 // creation. (Because directories can be removed, however, it may be the case | 182 // creation. (Because directories can be removed, however, it may be the case |
| 183 // that at some point the list of numbered profiles is not continuous.) | 183 // that at some point the list of numbered profiles is not continuous.) |
| 184 static void CreateMultiProfileAsync( | 184 static void CreateMultiProfileAsync( |
| 185 const string16& name, | 185 const string16& name, |
| 186 const string16& icon_url, | 186 const string16& icon_url, |
| 187 const CreateCallback& callback, | 187 const CreateCallback& callback, |
| 188 chrome::HostDesktopType desktop_type, | 188 chrome::HostDesktopType desktop_type, |
| 189 bool is_managed); | 189 bool is_managed); |
| 190 | 190 |
| 191 // Register multi-profile related preferences in Local State. | 191 // Register multi-profile related preferences in Local State. |
| 192 static void RegisterPrefs(PrefServiceSimple* prefs); | 192 static void RegisterPrefs(PrefRegistrySimple* registry); |
| 193 | 193 |
| 194 // Returns a ProfileInfoCache object which can be used to get information | 194 // Returns a ProfileInfoCache object which can be used to get information |
| 195 // about profiles without having to load them from disk. | 195 // about profiles without having to load them from disk. |
| 196 ProfileInfoCache& GetProfileInfoCache(); | 196 ProfileInfoCache& GetProfileInfoCache(); |
| 197 | 197 |
| 198 // Returns a ProfileShortcut Manager that enables the caller to create | 198 // Returns a ProfileShortcut Manager that enables the caller to create |
| 199 // profile specfic desktop shortcuts. | 199 // profile specfic desktop shortcuts. |
| 200 ProfileShortcutManager* profile_shortcut_manager(); | 200 ProfileShortcutManager* profile_shortcut_manager(); |
| 201 | 201 |
| 202 // Schedules the profile at the given path to be deleted on shutdown. | 202 // Schedules the profile at the given path to be deleted on shutdown. |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 class ProfileManagerWithoutInit : public ProfileManager { | 361 class ProfileManagerWithoutInit : public ProfileManager { |
| 362 public: | 362 public: |
| 363 explicit ProfileManagerWithoutInit(const FilePath& user_data_dir); | 363 explicit ProfileManagerWithoutInit(const FilePath& user_data_dir); |
| 364 | 364 |
| 365 protected: | 365 protected: |
| 366 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} | 366 virtual void DoFinalInitForServices(Profile*, bool) OVERRIDE {} |
| 367 virtual void DoFinalInitLogging(Profile*) OVERRIDE {} | 367 virtual void DoFinalInitLogging(Profile*) OVERRIDE {} |
| 368 }; | 368 }; |
| 369 | 369 |
| 370 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ | 370 #endif // CHROME_BROWSER_PROFILES_PROFILE_MANAGER_H_ |
| OLD | NEW |