Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Side by Side Diff: components/sync/driver/shared_change_processor_ref.cc

Issue 2376123003: [Sync] Move //components/sync to the syncer namespace. (Closed)
Patch Set: Rebase. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/shared_change_processor_ref.h" 5 #include "components/sync/driver/shared_change_processor_ref.h"
6 6
7 namespace sync_driver { 7 namespace syncer {
8 8
9 SharedChangeProcessorRef::SharedChangeProcessorRef( 9 SharedChangeProcessorRef::SharedChangeProcessorRef(
10 const scoped_refptr<SharedChangeProcessor>& change_processor) 10 const scoped_refptr<SharedChangeProcessor>& change_processor)
11 : change_processor_(change_processor) { 11 : change_processor_(change_processor) {
12 DCHECK(change_processor_.get()); 12 DCHECK(change_processor_.get());
13 } 13 }
14 14
15 SharedChangeProcessorRef::~SharedChangeProcessorRef() {} 15 SharedChangeProcessorRef::~SharedChangeProcessorRef() {}
16 16
17 syncer::SyncError SharedChangeProcessorRef::ProcessSyncChanges( 17 SyncError SharedChangeProcessorRef::ProcessSyncChanges(
18 const tracked_objects::Location& from_here, 18 const tracked_objects::Location& from_here,
19 const syncer::SyncChangeList& change_list) { 19 const SyncChangeList& change_list) {
20 return change_processor_->ProcessSyncChanges(from_here, change_list); 20 return change_processor_->ProcessSyncChanges(from_here, change_list);
21 } 21 }
22 22
23 syncer::SyncDataList SharedChangeProcessorRef::GetAllSyncData( 23 SyncDataList SharedChangeProcessorRef::GetAllSyncData(ModelType type) const {
24 syncer::ModelType type) const {
25 return change_processor_->GetAllSyncData(type); 24 return change_processor_->GetAllSyncData(type);
26 } 25 }
27 26
28 syncer::SyncError SharedChangeProcessorRef::UpdateDataTypeContext( 27 SyncError SharedChangeProcessorRef::UpdateDataTypeContext(
29 syncer::ModelType type, 28 ModelType type,
30 syncer::SyncChangeProcessor::ContextRefreshStatus refresh_status, 29 SyncChangeProcessor::ContextRefreshStatus refresh_status,
31 const std::string& context) { 30 const std::string& context) {
32 return change_processor_->UpdateDataTypeContext(type, refresh_status, 31 return change_processor_->UpdateDataTypeContext(type, refresh_status,
33 context); 32 context);
34 } 33 }
35 34
36 void SharedChangeProcessorRef::AddLocalChangeObserver( 35 void SharedChangeProcessorRef::AddLocalChangeObserver(
37 syncer::LocalChangeObserver* observer) { 36 LocalChangeObserver* observer) {
38 change_processor_->AddLocalChangeObserver(observer); 37 change_processor_->AddLocalChangeObserver(observer);
39 } 38 }
40 39
41 void SharedChangeProcessorRef::RemoveLocalChangeObserver( 40 void SharedChangeProcessorRef::RemoveLocalChangeObserver(
42 syncer::LocalChangeObserver* observer) { 41 LocalChangeObserver* observer) {
43 change_processor_->RemoveLocalChangeObserver(observer); 42 change_processor_->RemoveLocalChangeObserver(observer);
44 } 43 }
45 44
46 syncer::SyncError SharedChangeProcessorRef::CreateAndUploadError( 45 SyncError SharedChangeProcessorRef::CreateAndUploadError(
47 const tracked_objects::Location& from_here, 46 const tracked_objects::Location& from_here,
48 const std::string& message) { 47 const std::string& message) {
49 return change_processor_->CreateAndUploadError(from_here, message); 48 return change_processor_->CreateAndUploadError(from_here, message);
50 } 49 }
51 50
52 } // namespace sync_driver 51 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/driver/shared_change_processor_ref.h ('k') | components/sync/driver/shared_change_processor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698