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

Side by Side Diff: chrome/browser/sync/glue/shared_change_processor_ref.cc

Issue 220043002: [Sync] Add sync api support for context changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
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 "chrome/browser/sync/glue/shared_change_processor_ref.h" 5 #include "chrome/browser/sync/glue/shared_change_processor_ref.h"
6 6
7 namespace browser_sync { 7 namespace browser_sync {
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 syncer::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 syncer::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 syncer::SyncDataList SharedChangeProcessorRef::GetAllSyncData(
24 syncer::ModelType type) const { 24 syncer::ModelType type) const {
25 return change_processor_->GetAllSyncData(type); 25 return change_processor_->GetAllSyncData(type);
26 } 26 }
27 27
28 syncer::SyncError SharedChangeProcessorRef::UpdateDataTypeContext(
29 syncer::ModelType type,
30 const std::string& context) {
31 return change_processor_->UpdateDataTypeContext(type, context);
32 }
33
28 syncer::SyncError SharedChangeProcessorRef::CreateAndUploadError( 34 syncer::SyncError SharedChangeProcessorRef::CreateAndUploadError(
29 const tracked_objects::Location& from_here, 35 const tracked_objects::Location& from_here,
30 const std::string& message) { 36 const std::string& message) {
31 return change_processor_->CreateAndUploadError(from_here, message); 37 return change_processor_->CreateAndUploadError(from_here, message);
32 } 38 }
33 39
34 } // namespace browser_sync 40 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/shared_change_processor_ref.h ('k') | sync/api/sync_change_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698