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 #ifndef BASE_PREFS_PREF_REGISTRY_H_ | 5 #ifndef BASE_PREFS_PREF_REGISTRY_H_ |
6 #define BASE_PREFS_PREF_REGISTRY_H_ | 6 #define BASE_PREFS_PREF_REGISTRY_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/prefs/base_prefs_export.h" | 13 #include "components/prefs/base_prefs_export.h" |
14 #include "base/prefs/pref_value_map.h" | 14 #include "components/prefs/pref_value_map.h" |
15 | 15 |
16 namespace base { | 16 namespace base { |
17 class Value; | 17 class Value; |
18 } | 18 } |
19 | 19 |
20 class DefaultPrefStore; | 20 class DefaultPrefStore; |
21 class PrefStore; | 21 class PrefStore; |
22 | 22 |
23 // Preferences need to be registered with a type and default value | 23 // Preferences need to be registered with a type and default value |
24 // before they are used. | 24 // before they are used. |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 scoped_refptr<DefaultPrefStore> defaults_; | 80 scoped_refptr<DefaultPrefStore> defaults_; |
81 | 81 |
82 // A map of pref name to a bitmask of PrefRegistrationFlags. | 82 // A map of pref name to a bitmask of PrefRegistrationFlags. |
83 PrefRegistrationFlagsMap registration_flags_; | 83 PrefRegistrationFlagsMap registration_flags_; |
84 | 84 |
85 private: | 85 private: |
86 DISALLOW_COPY_AND_ASSIGN(PrefRegistry); | 86 DISALLOW_COPY_AND_ASSIGN(PrefRegistry); |
87 }; | 87 }; |
88 | 88 |
89 #endif // BASE_PREFS_PREF_REGISTRY_H_ | 89 #endif // BASE_PREFS_PREF_REGISTRY_H_ |
OLD | NEW |