| 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 |
| 11 #ifndef BASE_PREFS_PREF_SERVICE_H_ | 11 #ifndef BASE_PREFS_PREF_SERVICE_H_ |
| 12 #define BASE_PREFS_PREF_SERVICE_H_ | 12 #define BASE_PREFS_PREF_SERVICE_H_ |
| 13 | 13 |
| 14 #include <set> | 14 #include <set> |
| 15 #include <string> | 15 #include <string> |
| 16 | 16 |
| 17 #include "base/callback.h" | 17 #include "base/callback.h" |
| 18 #include "base/compiler_specific.h" | 18 #include "base/compiler_specific.h" |
| 19 #include "base/hash_tables.h" | 19 #include "base/containers/hash_tables.h" |
| 20 #include "base/memory/ref_counted.h" | 20 #include "base/memory/ref_counted.h" |
| 21 #include "base/memory/scoped_ptr.h" | 21 #include "base/memory/scoped_ptr.h" |
| 22 #include "base/observer_list.h" | 22 #include "base/observer_list.h" |
| 23 #include "base/prefs/base_prefs_export.h" | 23 #include "base/prefs/base_prefs_export.h" |
| 24 #include "base/prefs/persistent_pref_store.h" | 24 #include "base/prefs/persistent_pref_store.h" |
| 25 #include "base/threading/non_thread_safe.h" | 25 #include "base/threading/non_thread_safe.h" |
| 26 #include "base/values.h" | 26 #include "base/values.h" |
| 27 | 27 |
| 28 class PrefNotifier; | 28 class PrefNotifier; |
| 29 class PrefNotifierImpl; | 29 class PrefNotifierImpl; |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 | 345 |
| 346 // Local cache of registered Preference objects. The pref_registry_ | 346 // Local cache of registered Preference objects. The pref_registry_ |
| 347 // is authoritative with respect to what the types and default values | 347 // is authoritative with respect to what the types and default values |
| 348 // of registered preferences are. | 348 // of registered preferences are. |
| 349 mutable PreferenceMap prefs_map_; | 349 mutable PreferenceMap prefs_map_; |
| 350 | 350 |
| 351 DISALLOW_COPY_AND_ASSIGN(PrefService); | 351 DISALLOW_COPY_AND_ASSIGN(PrefService); |
| 352 }; | 352 }; |
| 353 | 353 |
| 354 #endif // BASE_PREFS_PREF_SERVICE_H_ | 354 #endif // BASE_PREFS_PREF_SERVICE_H_ |
| OLD | NEW |