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_SYNC_BASE_SYNC_PREFS_H_ | 5 #ifndef COMPONENTS_SYNC_BASE_SYNC_PREFS_H_ |
6 #define COMPONENTS_SYNC_BASE_SYNC_PREFS_H_ | 6 #define COMPONENTS_SYNC_BASE_SYNC_PREFS_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 // configuration management. | 210 // configuration management. |
211 BooleanPrefMember pref_sync_managed_; | 211 BooleanPrefMember pref_sync_managed_; |
212 | 212 |
213 // Groups of prefs that always have the same value as a "master" pref. | 213 // Groups of prefs that always have the same value as a "master" pref. |
214 // For example, the APPS group has {APP_NOTIFICATIONS, APP_SETTINGS} | 214 // For example, the APPS group has {APP_NOTIFICATIONS, APP_SETTINGS} |
215 // (as well as APPS, but that is implied), so | 215 // (as well as APPS, but that is implied), so |
216 // pref_groups_[APPS] = { APP_NOTIFICATIONS, | 216 // pref_groups_[APPS] = { APP_NOTIFICATIONS, |
217 // APP_SETTINGS } | 217 // APP_SETTINGS } |
218 // pref_groups_[EXTENSIONS] = { EXTENSION_SETTINGS } | 218 // pref_groups_[EXTENSIONS] = { EXTENSION_SETTINGS } |
219 // etc. | 219 // etc. |
220 typedef std::map<ModelType, ModelTypeSet> PrefGroupsMap; | 220 using PrefGroupsMap = std::map<ModelType, ModelTypeSet>; |
221 PrefGroupsMap pref_groups_; | 221 PrefGroupsMap pref_groups_; |
222 | 222 |
223 DISALLOW_COPY_AND_ASSIGN(SyncPrefs); | 223 DISALLOW_COPY_AND_ASSIGN(SyncPrefs); |
224 }; | 224 }; |
225 | 225 |
226 } // namespace syncer | 226 } // namespace syncer |
227 | 227 |
228 #endif // COMPONENTS_SYNC_BASE_SYNC_PREFS_H_ | 228 #endif // COMPONENTS_SYNC_BASE_SYNC_PREFS_H_ |
OLD | NEW |