Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(601)

Side by Side Diff: chrome/browser/profiles/profile_manager.h

Issue 11570009: Split PrefService into PrefService, PrefServiceSimple and PrefServiceSyncable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ready for review. Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698