| 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/threading/thread_task_runner_handle.h" | 8 #include "base/threading/thread_task_runner_handle.h" |
| 9 #include "components/sync/api/sync_error.h" |
| 10 #include "components/sync/api/sync_merge_result.h" |
| 11 #include "components/sync/base/data_type_histogram.h" |
| 12 #include "components/sync/base/model_type.h" |
| 9 #include "components/sync_driver/change_processor.h" | 13 #include "components/sync_driver/change_processor.h" |
| 10 #include "components/sync_driver/model_associator.h" | 14 #include "components/sync_driver/model_associator.h" |
| 11 #include "components/sync_driver/sync_client.h" | 15 #include "components/sync_driver/sync_client.h" |
| 12 #include "components/sync_driver/sync_service.h" | 16 #include "components/sync_driver/sync_service.h" |
| 13 #include "sync/api/sync_error.h" | |
| 14 #include "sync/api/sync_merge_result.h" | |
| 15 #include "sync/internal_api/public/base/model_type.h" | |
| 16 #include "sync/util/data_type_histogram.h" | |
| 17 | 17 |
| 18 namespace browser_sync { | 18 namespace browser_sync { |
| 19 | 19 |
| 20 FrontendDataTypeController::FrontendDataTypeController( | 20 FrontendDataTypeController::FrontendDataTypeController( |
| 21 const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread, | 21 const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread, |
| 22 const base::Closure& error_callback, | 22 const base::Closure& error_callback, |
| 23 sync_driver::SyncClient* sync_client) | 23 sync_driver::SyncClient* sync_client) |
| 24 : DirectoryDataTypeController(ui_thread, error_callback), | 24 : DirectoryDataTypeController(ui_thread, error_callback), |
| 25 sync_client_(sync_client), | 25 sync_client_(sync_client), |
| 26 state_(NOT_RUNNING) { | 26 state_(NOT_RUNNING) { |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 const { | 286 const { |
| 287 return change_processor_.get(); | 287 return change_processor_.get(); |
| 288 } | 288 } |
| 289 | 289 |
| 290 void FrontendDataTypeController::set_change_processor( | 290 void FrontendDataTypeController::set_change_processor( |
| 291 sync_driver::ChangeProcessor* change_processor) { | 291 sync_driver::ChangeProcessor* change_processor) { |
| 292 change_processor_.reset(change_processor); | 292 change_processor_.reset(change_processor); |
| 293 } | 293 } |
| 294 | 294 |
| 295 } // namespace browser_sync | 295 } // namespace browser_sync |
| OLD | NEW |