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

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

Issue 5213002: Fix for Bug 50726 "Save extension list and "winning" prefs from extensions" (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Same patch but without stuff that is already included in 5204006 Created 10 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
« no previous file with comments | « chrome/browser/extensions/test_extension_prefs.cc ('k') | chrome/browser/prefs/pref_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 // A helper method to quickly look up a preference. Returns NULL if the 218 // A helper method to quickly look up a preference. Returns NULL if the
219 // preference is not registered. 219 // preference is not registered.
220 const Preference* FindPreference(const char* pref_name) const; 220 const Preference* FindPreference(const char* pref_name) const;
221 221
222 bool ReadOnly() const; 222 bool ReadOnly() const;
223 223
224 PrefNotifier* pref_notifier() const { return pref_notifier_.get(); } 224 PrefNotifier* pref_notifier() const { return pref_notifier_.get(); }
225 225
226 PrefValueStore* pref_value_store() const { return pref_value_store_.get(); } 226 PrefValueStore* pref_value_store() const { return pref_value_store_.get(); }
227 227
228 PrefStore* GetExtensionPrefStore() const;
229
228 protected: 230 protected:
229 // The PrefNotifier handles registering and notifying preference observers. 231 // The PrefNotifier handles registering and notifying preference observers.
230 // It is created and owned by this PrefService. Subclasses may access it for 232 // It is created and owned by this PrefService. Subclasses may access it for
231 // unit testing. 233 // unit testing.
232 scoped_ptr<PrefNotifier> pref_notifier_; 234 scoped_ptr<PrefNotifier> pref_notifier_;
233 235
234 private: 236 private:
235 // Registration of pref change observers must be done using the 237 // Registration of pref change observers must be done using the
236 // PrefChangeRegistrar, which is declared as a friend here to grant it 238 // PrefChangeRegistrar, which is declared as a friend here to grant it
237 // access to the otherwise protected members Add/RemovePrefObserver. 239 // access to the otherwise protected members Add/RemovePrefObserver.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 // and owned by this PrefService. Subclasses may access it for unit testing. 273 // and owned by this PrefService. Subclasses may access it for unit testing.
272 scoped_refptr<PrefValueStore> pref_value_store_; 274 scoped_refptr<PrefValueStore> pref_value_store_;
273 275
274 // A set of all the registered Preference objects. 276 // A set of all the registered Preference objects.
275 PreferenceSet prefs_; 277 PreferenceSet prefs_;
276 278
277 DISALLOW_COPY_AND_ASSIGN(PrefService); 279 DISALLOW_COPY_AND_ASSIGN(PrefService);
278 }; 280 };
279 281
280 #endif // CHROME_BROWSER_PREFS_PREF_SERVICE_H_ 282 #endif // CHROME_BROWSER_PREFS_PREF_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/test_extension_prefs.cc ('k') | chrome/browser/prefs/pref_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698