| 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 #include "components/sync_driver/change_processor.h" | 5 #include "components/sync/driver/change_processor.h" |
| 6 | 6 |
| 7 namespace sync_driver { | 7 namespace sync_driver { |
| 8 | 8 |
| 9 ChangeProcessor::ChangeProcessor(syncer::DataTypeErrorHandler* error_handler) | 9 ChangeProcessor::ChangeProcessor(syncer::DataTypeErrorHandler* error_handler) |
| 10 : error_handler_(error_handler), share_handle_(NULL) {} | 10 : error_handler_(error_handler), share_handle_(NULL) {} |
| 11 | 11 |
| 12 ChangeProcessor::~ChangeProcessor() { | 12 ChangeProcessor::~ChangeProcessor() {} |
| 13 } | |
| 14 | 13 |
| 15 void ChangeProcessor::Start(syncer::UserShare* share_handle) { | 14 void ChangeProcessor::Start(syncer::UserShare* share_handle) { |
| 16 DCHECK(!share_handle_); | 15 DCHECK(!share_handle_); |
| 17 share_handle_ = share_handle; | 16 share_handle_ = share_handle; |
| 18 StartImpl(); | 17 StartImpl(); |
| 19 } | 18 } |
| 20 | 19 |
| 21 // Not implemented by default. | 20 // Not implemented by default. |
| 22 void ChangeProcessor::CommitChangesFromSyncModel() {} | 21 void ChangeProcessor::CommitChangesFromSyncModel() {} |
| 23 | 22 |
| 24 syncer::DataTypeErrorHandler* ChangeProcessor::error_handler() const { | 23 syncer::DataTypeErrorHandler* ChangeProcessor::error_handler() const { |
| 25 return error_handler_; | 24 return error_handler_; |
| 26 } | 25 } |
| 27 | 26 |
| 28 syncer::UserShare* ChangeProcessor::share_handle() const { | 27 syncer::UserShare* ChangeProcessor::share_handle() const { |
| 29 return share_handle_; | 28 return share_handle_; |
| 30 } | 29 } |
| 31 | 30 |
| 32 } // namespace sync_driver | 31 } // namespace sync_driver |
| OLD | NEW |