| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/sync/glue/frontend_data_type_controller.h" | 5 #include "chrome/browser/sync/glue/frontend_data_type_controller.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
| 9 #include "chrome/browser/sync/api/sync_error.h" | 9 #include "chrome/browser/sync/api/sync_error.h" |
| 10 #include "chrome/browser/sync/glue/change_processor.h" | 10 #include "chrome/browser/sync/glue/change_processor.h" |
| 11 #include "chrome/browser/sync/glue/model_associator.h" | 11 #include "chrome/browser/sync/glue/model_associator.h" |
| 12 #include "chrome/browser/sync/profile_sync_factory.h" | 12 #include "chrome/browser/sync/profile_sync_factory.h" |
| 13 #include "chrome/browser/sync/profile_sync_service.h" | 13 #include "chrome/browser/sync/profile_sync_service.h" |
| 14 #include "chrome/browser/sync/syncable/model_type.h" | 14 #include "chrome/browser/sync/syncable/model_type.h" |
| 15 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
| 16 | 16 |
| 17 using content::BrowserThread; |
| 18 |
| 17 namespace browser_sync { | 19 namespace browser_sync { |
| 18 | 20 |
| 19 FrontendDataTypeController::FrontendDataTypeController() | 21 FrontendDataTypeController::FrontendDataTypeController() |
| 20 : profile_sync_factory_(NULL), | 22 : profile_sync_factory_(NULL), |
| 21 profile_(NULL), | 23 profile_(NULL), |
| 22 sync_service_(NULL), | 24 sync_service_(NULL), |
| 23 state_(NOT_RUNNING) { | 25 state_(NOT_RUNNING) { |
| 24 } | 26 } |
| 25 | 27 |
| 26 FrontendDataTypeController::FrontendDataTypeController( | 28 FrontendDataTypeController::FrontendDataTypeController( |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 ChangeProcessor* FrontendDataTypeController::change_processor() const { | 219 ChangeProcessor* FrontendDataTypeController::change_processor() const { |
| 218 return change_processor_.get(); | 220 return change_processor_.get(); |
| 219 } | 221 } |
| 220 | 222 |
| 221 void FrontendDataTypeController::set_change_processor( | 223 void FrontendDataTypeController::set_change_processor( |
| 222 ChangeProcessor* change_processor) { | 224 ChangeProcessor* change_processor) { |
| 223 change_processor_.reset(change_processor); | 225 change_processor_.reset(change_processor); |
| 224 } | 226 } |
| 225 | 227 |
| 226 } // namespace browser_sync | 228 } // namespace browser_sync |
| OLD | NEW |