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 COMPONENTS_PREF_REGISTRY_PREF_REGISTRY_SYNCABLE_H_ | 5 #ifndef COMPONENTS_PREF_REGISTRY_PREF_REGISTRY_SYNCABLE_H_ |
6 #define COMPONENTS_PREF_REGISTRY_PREF_REGISTRY_SYNCABLE_H_ | 6 #define COMPONENTS_PREF_REGISTRY_PREF_REGISTRY_SYNCABLE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "components/prefs/pref_registry_simple.h" | 14 #include "components/prefs/pref_registry_simple.h" |
15 | 15 |
16 namespace base { | 16 namespace base { |
17 class DictionaryValue; | |
18 class FilePath; | |
19 class ListValue; | |
20 class Value; | 17 class Value; |
21 } | 18 } |
22 | 19 |
23 // TODO(tfarina): Change this namespace to pref_registry. | 20 // TODO(tfarina): Change this namespace to pref_registry. |
24 namespace user_prefs { | 21 namespace user_prefs { |
25 | 22 |
26 // A PrefRegistry that forces users to choose whether each registered | 23 // A PrefRegistry that forces users to choose whether each registered |
27 // preference is syncable or not. | 24 // preference is syncable or not. |
28 // | 25 // |
29 // Classes or components that want to register such preferences should | 26 // Classes or components that want to register such preferences should |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 uint32_t flags) override; | 80 uint32_t flags) override; |
84 | 81 |
85 SyncableRegistrationCallback callback_; | 82 SyncableRegistrationCallback callback_; |
86 | 83 |
87 DISALLOW_COPY_AND_ASSIGN(PrefRegistrySyncable); | 84 DISALLOW_COPY_AND_ASSIGN(PrefRegistrySyncable); |
88 }; | 85 }; |
89 | 86 |
90 } // namespace user_prefs | 87 } // namespace user_prefs |
91 | 88 |
92 #endif // COMPONENTS_PREF_REGISTRY_PREF_REGISTRY_SYNCABLE_H_ | 89 #endif // COMPONENTS_PREF_REGISTRY_PREF_REGISTRY_SYNCABLE_H_ |
OLD | NEW |