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

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

Issue 5921003: Revert 69320 - Migrate HostReferralList and StartupDNSPrefetchList from local... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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/prefs/browser_prefs.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:mergeinfo
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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 132
133 // Make the PrefService aware of a pref. 133 // Make the PrefService aware of a pref.
134 void RegisterBooleanPref(const char* path, bool default_value); 134 void RegisterBooleanPref(const char* path, bool default_value);
135 void RegisterIntegerPref(const char* path, int default_value); 135 void RegisterIntegerPref(const char* path, int default_value);
136 void RegisterRealPref(const char* path, double default_value); 136 void RegisterRealPref(const char* path, double default_value);
137 void RegisterStringPref(const char* path, const std::string& default_value); 137 void RegisterStringPref(const char* path, const std::string& default_value);
138 void RegisterFilePathPref(const char* path, const FilePath& default_value); 138 void RegisterFilePathPref(const char* path, const FilePath& default_value);
139 void RegisterListPref(const char* path); 139 void RegisterListPref(const char* path);
140 void RegisterDictionaryPref(const char* path); 140 void RegisterDictionaryPref(const char* path);
141 141
142 // These variants use a default value from the locale dll instead. 142 // These varients use a default value from the locale dll instead.
143 void RegisterLocalizedBooleanPref(const char* path, 143 void RegisterLocalizedBooleanPref(const char* path,
144 int locale_default_message_id); 144 int locale_default_message_id);
145 void RegisterLocalizedIntegerPref(const char* path, 145 void RegisterLocalizedIntegerPref(const char* path,
146 int locale_default_message_id); 146 int locale_default_message_id);
147 void RegisterLocalizedRealPref(const char* path, 147 void RegisterLocalizedRealPref(const char* path,
148 int locale_default_message_id); 148 int locale_default_message_id);
149 void RegisterLocalizedStringPref(const char* path, 149 void RegisterLocalizedStringPref(const char* path,
150 int locale_default_message_id); 150 int locale_default_message_id);
151 151
152 // If the path is valid and the value at the end of the path matches the type 152 // If the path is valid and the value at the end of the path matches the type
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 // Points to the default pref store we passed to the PrefValueStore. 279 // Points to the default pref store we passed to the PrefValueStore.
280 DefaultPrefStore* default_store_; 280 DefaultPrefStore* default_store_;
281 281
282 // A set of all the registered Preference objects. 282 // A set of all the registered Preference objects.
283 PreferenceSet prefs_; 283 PreferenceSet prefs_;
284 284
285 DISALLOW_COPY_AND_ASSIGN(PrefService); 285 DISALLOW_COPY_AND_ASSIGN(PrefService);
286 }; 286 };
287 287
288 #endif // CHROME_BROWSER_PREFS_PREF_SERVICE_H_ 288 #endif // CHROME_BROWSER_PREFS_PREF_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/prefs/browser_prefs.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698