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