| 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 is the base interface for a preference services that provides | 5 // This is the base interface for a preference services that provides |
| 6 // a way to access the application's current preferences. | 6 // a way to access the application's current preferences. |
| 7 // | 7 // |
| 8 // This base interface assumes all preferences are local. See | 8 // This base interface assumes all preferences are local. See |
| 9 // SyncablePrefServiceBase for the interface to a preference service | 9 // SyncablePrefServiceBase for the interface to a preference service |
| 10 // that stores preferences that can be synced. | 10 // that stores preferences that can be synced. |
| 11 // | 11 // |
| 12 // Chromium settings and storage represent user-selected preferences and | 12 // Chromium settings and storage represent user-selected preferences and |
| 13 // information and MUST not be extracted, overwritten or modified except | 13 // information and MUST not be extracted, overwritten or modified except |
| 14 // through Chromium defined APIs. | 14 // through Chromium defined APIs. |
| 15 | 15 |
| 16 #ifndef CHROME_BROWSER_API_PREFS_PREF_SERVICE_BASE_H_ | 16 #ifndef BASE_PREFS_PUBLIC_PREF_SERVICE_BASE_H_ |
| 17 #define CHROME_BROWSER_API_PREFS_PREF_SERVICE_BASE_H_ | 17 #define BASE_PREFS_PUBLIC_PREF_SERVICE_BASE_H_ |
| 18 | 18 |
| 19 #include "base/values.h" | 19 #include "base/values.h" |
| 20 | 20 |
| 21 namespace content { | 21 namespace content { |
| 22 class BrowserContext; | 22 class BrowserContext; |
| 23 class NotificationObserver; | 23 class NotificationObserver; |
| 24 } | 24 } |
| 25 | 25 |
| 26 namespace subtle { | 26 namespace subtle { |
| 27 class PrefMemberBase; | 27 class PrefMemberBase; |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 // If the pref at the given path changes, we call the observer's Observe | 262 // If the pref at the given path changes, we call the observer's Observe |
| 263 // method with PREF_CHANGED. Note that observers should not call these methods | 263 // method with PREF_CHANGED. Note that observers should not call these methods |
| 264 // directly but rather use a PrefChangeRegistrar to make sure the observer | 264 // directly but rather use a PrefChangeRegistrar to make sure the observer |
| 265 // gets cleaned up properly. | 265 // gets cleaned up properly. |
| 266 virtual void AddPrefObserver(const char* path, | 266 virtual void AddPrefObserver(const char* path, |
| 267 content::NotificationObserver* obs) = 0; | 267 content::NotificationObserver* obs) = 0; |
| 268 virtual void RemovePrefObserver(const char* path, | 268 virtual void RemovePrefObserver(const char* path, |
| 269 content::NotificationObserver* obs) = 0; | 269 content::NotificationObserver* obs) = 0; |
| 270 }; | 270 }; |
| 271 | 271 |
| 272 #endif // CHROME_BROWSER_API_PREFS_PREF_SERVICE_BASE_H_ | 272 #endif // BASE_PREFS_PUBLIC_PREF_SERVICE_BASE_H_ |
| OLD | NEW |