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_CORE_SHARED_MODEL_TYPE_PROCESSOR_H_ | 5 #ifndef COMPONENTS_SYNC_CORE_SHARED_MODEL_TYPE_PROCESSOR_H_ |
6 #define COMPONENTS_SYNC_CORE_SHARED_MODEL_TYPE_PROCESSOR_H_ | 6 #define COMPONENTS_SYNC_CORE_SHARED_MODEL_TYPE_PROCESSOR_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
11 #include <unordered_set> | 11 #include <unordered_set> |
12 | 12 |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "base/threading/non_thread_safe.h" | 14 #include "base/threading/non_thread_safe.h" |
15 #include "components/sync/api/data_batch.h" | |
16 #include "components/sync/api/data_type_error_handler.h" | |
17 #include "components/sync/api/metadata_batch.h" | |
18 #include "components/sync/api/metadata_change_list.h" | |
19 #include "components/sync/api/model_type_change_processor.h" | |
20 #include "components/sync/api/model_type_service.h" | |
21 #include "components/sync/api/sync_error.h" | |
22 #include "components/sync/base/model_type.h" | 15 #include "components/sync/base/model_type.h" |
23 #include "components/sync/core/model_type_processor.h" | 16 #include "components/sync/core/model_type_processor.h" |
24 #include "components/sync/core/non_blocking_sync_common.h" | 17 #include "components/sync/core/non_blocking_sync_common.h" |
25 #include "components/sync/engine/cycle/status_counters.h" | 18 #include "components/sync/engine/cycle/status_counters.h" |
| 19 #include "components/sync/model/data_batch.h" |
| 20 #include "components/sync/model/data_type_error_handler.h" |
| 21 #include "components/sync/model/metadata_batch.h" |
| 22 #include "components/sync/model/metadata_change_list.h" |
| 23 #include "components/sync/model/model_type_change_processor.h" |
| 24 #include "components/sync/model/model_type_service.h" |
| 25 #include "components/sync/model/sync_error.h" |
26 #include "components/sync/protocol/model_type_state.pb.h" | 26 #include "components/sync/protocol/model_type_state.pb.h" |
27 #include "components/sync/protocol/sync.pb.h" | 27 #include "components/sync/protocol/sync.pb.h" |
28 | 28 |
29 namespace syncer { | 29 namespace syncer { |
30 struct ActivationContext; | 30 struct ActivationContext; |
31 class CommitQueue; | 31 class CommitQueue; |
32 class ProcessorEntityTracker; | 32 class ProcessorEntityTracker; |
33 | 33 |
34 // A sync component embedded on the synced type's thread that helps to handle | 34 // A sync component embedded on the synced type's thread that helps to handle |
35 // communication between sync and model type threads. | 35 // communication between sync and model type threads. |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 // OnSyncStarting has been called. This pointer is not owned. | 206 // OnSyncStarting has been called. This pointer is not owned. |
207 std::unique_ptr<DataTypeErrorHandler> error_handler_; | 207 std::unique_ptr<DataTypeErrorHandler> error_handler_; |
208 | 208 |
209 // WeakPtrFactory for this processor which will be sent to sync thread. | 209 // WeakPtrFactory for this processor which will be sent to sync thread. |
210 base::WeakPtrFactory<SharedModelTypeProcessor> weak_ptr_factory_; | 210 base::WeakPtrFactory<SharedModelTypeProcessor> weak_ptr_factory_; |
211 }; | 211 }; |
212 | 212 |
213 } // namespace syncer | 213 } // namespace syncer |
214 | 214 |
215 #endif // COMPONENTS_SYNC_CORE_SHARED_MODEL_TYPE_PROCESSOR_H_ | 215 #endif // COMPONENTS_SYNC_CORE_SHARED_MODEL_TYPE_PROCESSOR_H_ |
OLD | NEW |