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 <stdint.h> | 14 #include <stdint.h> |
15 | 15 |
16 #include <set> | 16 #include <set> |
17 #include <string> | 17 #include <string> |
18 | 18 |
19 #include "base/callback.h" | 19 #include "base/callback.h" |
20 #include "base/compiler_specific.h" | 20 #include "base/compiler_specific.h" |
21 #include "base/containers/hash_tables.h" | 21 #include "base/containers/hash_tables.h" |
22 #include "base/macros.h" | 22 #include "base/macros.h" |
23 #include "base/memory/ref_counted.h" | 23 #include "base/memory/ref_counted.h" |
24 #include "base/memory/scoped_ptr.h" | 24 #include "base/memory/scoped_ptr.h" |
25 #include "base/observer_list.h" | 25 #include "base/observer_list.h" |
26 #include "base/prefs/base_prefs_export.h" | |
27 #include "base/prefs/persistent_pref_store.h" | |
28 #include "base/threading/non_thread_safe.h" | 26 #include "base/threading/non_thread_safe.h" |
29 #include "base/values.h" | 27 #include "base/values.h" |
| 28 #include "components/prefs/base_prefs_export.h" |
| 29 #include "components/prefs/persistent_pref_store.h" |
30 | 30 |
31 class PrefNotifier; | 31 class PrefNotifier; |
32 class PrefNotifierImpl; | 32 class PrefNotifierImpl; |
33 class PrefObserver; | 33 class PrefObserver; |
34 class PrefRegistry; | 34 class PrefRegistry; |
35 class PrefValueStore; | 35 class PrefValueStore; |
36 class PrefStore; | 36 class PrefStore; |
37 | 37 |
38 namespace base { | 38 namespace base { |
39 class FilePath; | 39 class FilePath; |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 | 376 |
377 // Local cache of registered Preference objects. The pref_registry_ | 377 // Local cache of registered Preference objects. The pref_registry_ |
378 // is authoritative with respect to what the types and default values | 378 // is authoritative with respect to what the types and default values |
379 // of registered preferences are. | 379 // of registered preferences are. |
380 mutable PreferenceMap prefs_map_; | 380 mutable PreferenceMap prefs_map_; |
381 | 381 |
382 DISALLOW_COPY_AND_ASSIGN(PrefService); | 382 DISALLOW_COPY_AND_ASSIGN(PrefService); |
383 }; | 383 }; |
384 | 384 |
385 #endif // BASE_PREFS_PREF_SERVICE_H_ | 385 #endif // BASE_PREFS_PREF_SERVICE_H_ |
OLD | NEW |