OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |