OLD | NEW |
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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 static PrefService* CreatePrefService(const FilePath& pref_filename, | 154 static PrefService* CreatePrefService(const FilePath& pref_filename, |
155 PrefStore* extension_pref_store, | 155 PrefStore* extension_pref_store, |
156 bool async); | 156 bool async); |
157 | 157 |
158 // Creates an incognito copy of the pref service that shares most pref stores | 158 // Creates an incognito copy of the pref service that shares most pref stores |
159 // but uses a fresh non-persistent overlay for the user pref store and an | 159 // but uses a fresh non-persistent overlay for the user pref store and an |
160 // individual extension pref store (to cache the effective extension prefs for | 160 // individual extension pref store (to cache the effective extension prefs for |
161 // incognito windows). | 161 // incognito windows). |
162 PrefService* CreateIncognitoPrefService(PrefStore* incognito_extension_prefs); | 162 PrefService* CreateIncognitoPrefService(PrefStore* incognito_extension_prefs); |
163 | 163 |
164 // Creates a per-tab copy of the pref service that shares most pref stores | |
165 // and allows WebKit-related preferences to be overridden on per-tab basis. | |
166 PrefService* CreatePrefServiceWithPerTabPrefStore(); | |
167 | |
168 virtual ~PrefService(); | 164 virtual ~PrefService(); |
169 | 165 |
170 // Reloads the data from file. This should only be called when the importer | 166 // Reloads the data from file. This should only be called when the importer |
171 // is running during first run, and the main process may not change pref | 167 // is running during first run, and the main process may not change pref |
172 // values while the importer process is running. Returns true on success. | 168 // values while the importer process is running. Returns true on success. |
173 bool ReloadPersistentPrefs(); | 169 bool ReloadPersistentPrefs(); |
174 | 170 |
175 // Returns true if the preference for the given preference name is available | 171 // Returns true if the preference for the given preference name is available |
176 // and is managed. | 172 // and is managed. |
177 bool IsManagedPreference(const char* pref_name) const; | 173 bool IsManagedPreference(const char* pref_name) const; |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 | 409 |
414 // Whether CreateIncognitoPrefService() or | 410 // Whether CreateIncognitoPrefService() or |
415 // CreatePrefServiceWithPerTabPrefStore() have been called to create a | 411 // CreatePrefServiceWithPerTabPrefStore() have been called to create a |
416 // "forked" PrefService. | 412 // "forked" PrefService. |
417 bool pref_service_forked_; | 413 bool pref_service_forked_; |
418 | 414 |
419 DISALLOW_COPY_AND_ASSIGN(PrefService); | 415 DISALLOW_COPY_AND_ASSIGN(PrefService); |
420 }; | 416 }; |
421 | 417 |
422 #endif // CHROME_BROWSER_PREFS_PREF_SERVICE_H_ | 418 #endif // CHROME_BROWSER_PREFS_PREF_SERVICE_H_ |
OLD | NEW |