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 13 matching lines...) Expand all Loading... |
24 | 24 |
25 class DataTypeController; | 25 class DataTypeController; |
26 class DataTypeDebugInfoListener; | 26 class DataTypeDebugInfoListener; |
27 class DataTypeEncryptionHandler; | 27 class DataTypeEncryptionHandler; |
28 class DataTypeManagerObserver; | 28 class DataTypeManagerObserver; |
29 class SyncClient; | 29 class SyncClient; |
30 struct DataTypeConfigurationStats; | 30 struct DataTypeConfigurationStats; |
31 | 31 |
32 // List of data types grouped by priority and ordered from high priority to | 32 // List of data types grouped by priority and ordered from high priority to |
33 // low priority. | 33 // low priority. |
34 typedef std::queue<ModelTypeSet> TypeSetPriorityList; | 34 using TypeSetPriorityList = std::queue<ModelTypeSet>; |
35 | 35 |
36 class DataTypeManagerImpl : public DataTypeManager, | 36 class DataTypeManagerImpl : public DataTypeManager, |
37 public ModelAssociationManagerDelegate { | 37 public ModelAssociationManagerDelegate { |
38 public: | 38 public: |
39 DataTypeManagerImpl( | 39 DataTypeManagerImpl( |
40 SyncClient* sync_client, | 40 SyncClient* sync_client, |
41 ModelTypeSet initial_types, | 41 ModelTypeSet initial_types, |
42 const WeakHandle<DataTypeDebugInfoListener>& debug_info_listener, | 42 const WeakHandle<DataTypeDebugInfoListener>& debug_info_listener, |
43 const DataTypeController::TypeMap* controllers, | 43 const DataTypeController::TypeMap* controllers, |
44 const DataTypeEncryptionHandler* encryption_handler, | 44 const DataTypeEncryptionHandler* encryption_handler, |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 bool download_started_; | 272 bool download_started_; |
273 | 273 |
274 base::WeakPtrFactory<DataTypeManagerImpl> weak_ptr_factory_; | 274 base::WeakPtrFactory<DataTypeManagerImpl> weak_ptr_factory_; |
275 | 275 |
276 DISALLOW_COPY_AND_ASSIGN(DataTypeManagerImpl); | 276 DISALLOW_COPY_AND_ASSIGN(DataTypeManagerImpl); |
277 }; | 277 }; |
278 | 278 |
279 } // namespace syncer | 279 } // namespace syncer |
280 | 280 |
281 #endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_MANAGER_IMPL_H__ | 281 #endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_MANAGER_IMPL_H__ |
OLD | NEW |