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

Side by Side Diff: chrome/browser/prefs/pref_service.h

Issue 11027070: Moved JsonPrefStore to use SequencedWorkerPool (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 2 months 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 provides a way to access the application's current preferences. 5 // This provides a way to access the application's current preferences.
6 6
7 // Chromium settings and storage represent user-selected preferences and 7 // Chromium settings and storage represent user-selected preferences and
8 // information and MUST not be extracted, overwritten or modified except 8 // information and MUST not be extracted, overwritten or modified except
9 // through Chromium defined APIs. 9 // through Chromium defined APIs.
10 10
(...skipping 10 matching lines...) Expand all
21 21
22 class CommandLine; 22 class CommandLine;
23 class DefaultPrefStore; 23 class DefaultPrefStore;
24 class PersistentPrefStore; 24 class PersistentPrefStore;
25 class PrefModelAssociator; 25 class PrefModelAssociator;
26 class PrefNotifier; 26 class PrefNotifier;
27 class PrefNotifierImpl; 27 class PrefNotifierImpl;
28 class PrefStore; 28 class PrefStore;
29 class PrefValueStore; 29 class PrefValueStore;
30 30
31 namespace base {
32 class SequencedTaskRunner;
33 }
34
31 namespace syncer { 35 namespace syncer {
32 class SyncableService; 36 class SyncableService;
33 } 37 }
34 38
35 namespace policy { 39 namespace policy {
36 class PolicyService; 40 class PolicyService;
37 } 41 }
38 42
39 namespace subtle { 43 namespace subtle {
40 class ScopedUserPrefUpdateBase; 44 class ScopedUserPrefUpdateBase;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // |extension_pref_store| is used as the source for extension-controlled 103 // |extension_pref_store| is used as the source for extension-controlled
100 // preferences and may be NULL. 104 // preferences and may be NULL.
101 // |policy_service| is used as the source for mandatory or recommended 105 // |policy_service| is used as the source for mandatory or recommended
102 // policies. 106 // policies.
103 // The PrefService takes ownership of |extension_pref_store|. 107 // The PrefService takes ownership of |extension_pref_store|.
104 // If |async| is true, asynchronous version is used. 108 // If |async| is true, asynchronous version is used.
105 // Notifies using PREF_INITIALIZATION_COMPLETED in the end. Details is set to 109 // Notifies using PREF_INITIALIZATION_COMPLETED in the end. Details is set to
106 // the created PrefService or NULL if creation has failed. Note, it is 110 // the created PrefService or NULL if creation has failed. Note, it is
107 // guaranteed that in asynchronous version initialization happens after this 111 // guaranteed that in asynchronous version initialization happens after this
108 // function returned. 112 // function returned.
109 static PrefService* CreatePrefService(const FilePath& pref_filename, 113 static PrefService* CreatePrefService(
110 policy::PolicyService* policy_service, 114 const FilePath& pref_filename,
111 PrefStore* extension_pref_store, 115 policy::PolicyService* policy_service,
112 bool async); 116 PrefStore* extension_pref_store,
117 bool async,
118 base::SequencedTaskRunner* sequenced_task_runner);
Mattias Nissler (ping if slow) 2012/10/22 17:28:21 nit: move next to pref_filename and maybe rename t
zel 2012/10/24 02:20:11 Done.
113 119
114 // Creates an incognito copy of the pref service that shares most pref stores 120 // Creates an incognito copy of the pref service that shares most pref stores
115 // but uses a fresh non-persistent overlay for the user pref store and an 121 // but uses a fresh non-persistent overlay for the user pref store and an
116 // individual extension pref store (to cache the effective extension prefs for 122 // individual extension pref store (to cache the effective extension prefs for
117 // incognito windows). 123 // incognito windows).
118 PrefService* CreateIncognitoPrefService(PrefStore* incognito_extension_prefs); 124 PrefService* CreateIncognitoPrefService(PrefStore* incognito_extension_prefs);
119 125
120 virtual ~PrefService(); 126 virtual ~PrefService();
121 127
122 // Reloads the data from file. This should only be called when the importer 128 // Reloads the data from file. This should only be called when the importer
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 346
341 // Whether CreateIncognitoPrefService() or 347 // Whether CreateIncognitoPrefService() or
342 // CreatePrefServiceWithPerTabPrefStore() have been called to create a 348 // CreatePrefServiceWithPerTabPrefStore() have been called to create a
343 // "forked" PrefService. 349 // "forked" PrefService.
344 bool pref_service_forked_; 350 bool pref_service_forked_;
345 351
346 DISALLOW_COPY_AND_ASSIGN(PrefService); 352 DISALLOW_COPY_AND_ASSIGN(PrefService);
347 }; 353 };
348 354
349 #endif // CHROME_BROWSER_PREFS_PREF_SERVICE_H_ 355 #endif // CHROME_BROWSER_PREFS_PREF_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698