OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_DRIVER_DATA_TYPE_MANAGER_IMPL_H__ | 5 #ifndef COMPONENTS_SYNC_DRIVER_DATA_TYPE_MANAGER_IMPL_H__ |
6 #define COMPONENTS_SYNC_DRIVER_DATA_TYPE_MANAGER_IMPL_H__ | 6 #define COMPONENTS_SYNC_DRIVER_DATA_TYPE_MANAGER_IMPL_H__ |
7 | 7 |
8 #include "components/sync_driver/data_type_manager.h" | 8 #include "components/sync_driver/data_type_manager.h" |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 // For querying failed data types (having unrecoverable error) when | 179 // For querying failed data types (having unrecoverable error) when |
180 // configuring backend. | 180 // configuring backend. |
181 DataTypeStatusTable data_type_status_table_; | 181 DataTypeStatusTable data_type_status_table_; |
182 | 182 |
183 // Types waiting to be downloaded. | 183 // Types waiting to be downloaded. |
184 TypeSetPriorityList download_types_queue_; | 184 TypeSetPriorityList download_types_queue_; |
185 | 185 |
186 // Types waiting for association and related time tracking info. | 186 // Types waiting for association and related time tracking info. |
187 struct AssociationTypesInfo { | 187 struct AssociationTypesInfo { |
188 AssociationTypesInfo(); | 188 AssociationTypesInfo(); |
| 189 AssociationTypesInfo(const AssociationTypesInfo& other); |
189 ~AssociationTypesInfo(); | 190 ~AssociationTypesInfo(); |
190 | 191 |
191 // Types to associate. | 192 // Types to associate. |
192 syncer::ModelTypeSet types; | 193 syncer::ModelTypeSet types; |
193 // Types that have just been downloaded and are being associated for the | 194 // Types that have just been downloaded and are being associated for the |
194 // first time. This includes types that had previously encountered an error | 195 // first time. This includes types that had previously encountered an error |
195 // and had to be purged/unapplied from the sync db. | 196 // and had to be purged/unapplied from the sync db. |
196 // This is a subset of |types|. | 197 // This is a subset of |types|. |
197 syncer::ModelTypeSet first_sync_types; | 198 syncer::ModelTypeSet first_sync_types; |
198 // Types that were already ready for association at configuration time. | 199 // Types that were already ready for association at configuration time. |
(...skipping 26 matching lines...) Expand all Loading... |
225 bool catch_up_in_progress_; | 226 bool catch_up_in_progress_; |
226 | 227 |
227 base::WeakPtrFactory<DataTypeManagerImpl> weak_ptr_factory_; | 228 base::WeakPtrFactory<DataTypeManagerImpl> weak_ptr_factory_; |
228 | 229 |
229 DISALLOW_COPY_AND_ASSIGN(DataTypeManagerImpl); | 230 DISALLOW_COPY_AND_ASSIGN(DataTypeManagerImpl); |
230 }; | 231 }; |
231 | 232 |
232 } // namespace sync_driver | 233 } // namespace sync_driver |
233 | 234 |
234 #endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_MANAGER_IMPL_H__ | 235 #endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_MANAGER_IMPL_H__ |
OLD | NEW |