Index: sync/api/sync_change_processor_delegator.cc |
diff --git a/sync/api/sync_change_processor_delegator.cc b/sync/api/sync_change_processor_delegator.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..09e1bdd7cfb88b59ea0631e4ad248af6eedf6c2d |
--- /dev/null |
+++ b/sync/api/sync_change_processor_delegator.cc |
@@ -0,0 +1,28 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "sync/api/sync_change_processor_delegator.h" |
+ |
+namespace syncer { |
+ |
+SyncChangeProcessorDelegator::SyncChangeProcessorDelegator( |
+ syncer::SyncChangeProcessor* recipient) |
+ : recipient_(recipient) { |
+ DCHECK(recipient_); |
+} |
+ |
+SyncChangeProcessorDelegator::~SyncChangeProcessorDelegator() {} |
+ |
+syncer::SyncError SyncChangeProcessorDelegator::ProcessSyncChanges( |
+ const tracked_objects::Location& from_here, |
+ const syncer::SyncChangeList& change_list) { |
+ return recipient_->ProcessSyncChanges(from_here, change_list); |
+} |
+ |
+syncer::SyncDataList SyncChangeProcessorDelegator::GetAllSyncData( |
+ syncer::ModelType type) const { |
+ return recipient_->GetAllSyncData(type); |
+} |
+ |
+} // namespace syncer |