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

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

Issue 6074003: Handle policy refresh internally in ConfigurationPolicyPrefStore. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nit Created 9 years, 12 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef CHROME_BROWSER_PREFS_PREF_SERVICE_H_ 7 #ifndef CHROME_BROWSER_PREFS_PREF_SERVICE_H_
8 #define CHROME_BROWSER_PREFS_PREF_SERVICE_H_ 8 #define CHROME_BROWSER_PREFS_PREF_SERVICE_H_
9 #pragma once 9 #pragma once
10 10
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 223
224 protected: 224 protected:
225 // Construct a new pref service, specifying the pref sources as explicit 225 // Construct a new pref service, specifying the pref sources as explicit
226 // PrefStore pointers. This constructor is what CreatePrefService() ends up 226 // PrefStore pointers. This constructor is what CreatePrefService() ends up
227 // calling. It's also used for unit tests. 227 // calling. It's also used for unit tests.
228 PrefService(PrefStore* managed_platform_prefs, 228 PrefService(PrefStore* managed_platform_prefs,
229 PrefStore* device_management_prefs, 229 PrefStore* device_management_prefs,
230 PrefStore* extension_prefs, 230 PrefStore* extension_prefs,
231 PrefStore* command_line_prefs, 231 PrefStore* command_line_prefs,
232 PersistentPrefStore* user_prefs, 232 PersistentPrefStore* user_prefs,
233 PrefStore* recommended_prefs, 233 PrefStore* recommended_prefs);
234 Profile* profile);
235 234
236 // The PrefNotifier handles registering and notifying preference observers. 235 // The PrefNotifier handles registering and notifying preference observers.
237 // It is created and owned by this PrefService. Subclasses may access it for 236 // It is created and owned by this PrefService. Subclasses may access it for
238 // unit testing. 237 // unit testing.
239 scoped_ptr<PrefNotifierImpl> pref_notifier_; 238 scoped_ptr<PrefNotifierImpl> pref_notifier_;
240 239
241 private: 240 private:
242 friend class PrefServiceMockBuilder; 241 friend class PrefServiceMockBuilder;
243 242
244 // Registration of pref change observers must be done using the 243 // Registration of pref change observers must be done using the
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 // Points to the default pref store we passed to the PrefValueStore. 278 // Points to the default pref store we passed to the PrefValueStore.
280 DefaultPrefStore* default_store_; 279 DefaultPrefStore* default_store_;
281 280
282 // A set of all the registered Preference objects. 281 // A set of all the registered Preference objects.
283 PreferenceSet prefs_; 282 PreferenceSet prefs_;
284 283
285 DISALLOW_COPY_AND_ASSIGN(PrefService); 284 DISALLOW_COPY_AND_ASSIGN(PrefService);
286 }; 285 };
287 286
288 #endif // CHROME_BROWSER_PREFS_PREF_SERVICE_H_ 287 #endif // CHROME_BROWSER_PREFS_PREF_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698