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 #include "components/sync/driver/frontend_data_type_controller.h" | 5 #include "components/sync/driver/frontend_data_type_controller.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
9 #include "base/threading/thread_task_runner_handle.h" | 9 #include "base/threading/thread_task_runner_handle.h" |
10 #include "components/sync/api/data_type_error_handler_impl.h" | |
11 #include "components/sync/api/sync_error.h" | |
12 #include "components/sync/api/sync_merge_result.h" | |
13 #include "components/sync/base/data_type_histogram.h" | 10 #include "components/sync/base/data_type_histogram.h" |
14 #include "components/sync/base/model_type.h" | 11 #include "components/sync/base/model_type.h" |
15 #include "components/sync/driver/change_processor.h" | 12 #include "components/sync/driver/change_processor.h" |
16 #include "components/sync/driver/model_associator.h" | 13 #include "components/sync/driver/model_associator.h" |
17 #include "components/sync/driver/sync_client.h" | 14 #include "components/sync/driver/sync_client.h" |
18 #include "components/sync/driver/sync_service.h" | 15 #include "components/sync/driver/sync_service.h" |
| 16 #include "components/sync/model/data_type_error_handler_impl.h" |
| 17 #include "components/sync/model/sync_error.h" |
| 18 #include "components/sync/model/sync_merge_result.h" |
19 | 19 |
20 namespace syncer { | 20 namespace syncer { |
21 | 21 |
22 FrontendDataTypeController::FrontendDataTypeController( | 22 FrontendDataTypeController::FrontendDataTypeController( |
23 ModelType type, | 23 ModelType type, |
24 const base::Closure& dump_stack, | 24 const base::Closure& dump_stack, |
25 SyncClient* sync_client) | 25 SyncClient* sync_client) |
26 : DirectoryDataTypeController(type, dump_stack, sync_client), | 26 : DirectoryDataTypeController(type, dump_stack, sync_client), |
27 state_(NOT_RUNNING) { | 27 state_(NOT_RUNNING) { |
28 DCHECK(CalledOnValidThread()); | 28 DCHECK(CalledOnValidThread()); |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 ChangeProcessor* FrontendDataTypeController::GetChangeProcessor() const { | 260 ChangeProcessor* FrontendDataTypeController::GetChangeProcessor() const { |
261 return change_processor_.get(); | 261 return change_processor_.get(); |
262 } | 262 } |
263 | 263 |
264 void FrontendDataTypeController::set_change_processor( | 264 void FrontendDataTypeController::set_change_processor( |
265 ChangeProcessor* change_processor) { | 265 ChangeProcessor* change_processor) { |
266 change_processor_.reset(change_processor); | 266 change_processor_.reset(change_processor); |
267 } | 267 } |
268 | 268 |
269 } // namespace syncer | 269 } // namespace syncer |
OLD | NEW |