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

Unified Diff: sync/engine/non_blocking_type_processor_core.cc

Issue 215973007: [Sync] Add plumbing of context from client to server (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: sync/engine/non_blocking_type_processor_core.cc
diff --git a/sync/engine/non_blocking_type_processor_core.cc b/sync/engine/non_blocking_type_processor_core.cc
index fdb9e10c1329b27eda9fa97dec1707adafa87d49..70c5efcf0a7b393ca9f8c148380fa7f36d90b7f1 100644
--- a/sync/engine/non_blocking_type_processor_core.cc
+++ b/sync/engine/non_blocking_type_processor_core.cc
@@ -33,25 +33,38 @@ void NonBlockingTypeProcessorCore::GetDownloadProgress(
sync_pb::DataTypeProgressMarker* progress_marker) const {
DCHECK(CalledOnValidThread());
// TODO(rlarocque): Implement this properly. crbug.com/351005.
- VLOG(1) << "Getting progress for: " << ModelTypeToString(type_);
+ DVLOG(1) << "Getting progress for: " << ModelTypeToString(type_);
*progress_marker = progress_marker_;
}
+void NonBlockingTypeProcessorCore::GetDataTypeContext(
+ sync_pb::DataTypeContext* context) const {
+ // TODO(rlarocque): Implement this properly. crbug.com/351005.
+ DVLOG(1) << "Getting context for: " << ModelTypeToString(type_);
+ context->Clear();
+}
+
void NonBlockingTypeProcessorCore::ProcessGetUpdatesResponse(
const sync_pb::DataTypeProgressMarker& progress_marker,
const SyncEntityList& applicable_updates,
sessions::StatusController* status) {
DCHECK(CalledOnValidThread());
// TODO(rlarocque): Implement this properly. crbug.com/351005.
- VLOG(1) << "Processing updates response for: " << ModelTypeToString(type_);
+ DVLOG(1) << "Processing updates response for: " << ModelTypeToString(type_);
progress_marker_ = progress_marker;
}
+void NonBlockingTypeProcessorCore::ProcessDataTypeContextMutation(
+ const sync_pb::DataTypeContext& mutated_context) {
+ // TODO(rlarocque): Implement this properly. crbug.com/351005.
+ DVLOG(1) << "Processing context mutation for: " << ModelTypeToString(type_);
+}
+
void NonBlockingTypeProcessorCore::ApplyUpdates(
sessions::StatusController* status) {
DCHECK(CalledOnValidThread());
// TODO(rlarocque): Implement this properly. crbug.com/351005.
- VLOG(1) << "Applying updates for: " << ModelTypeToString(type_);
+ DVLOG(1) << "Applying updates for: " << ModelTypeToString(type_);
}
void NonBlockingTypeProcessorCore::PassiveApplyUpdates(
@@ -66,7 +79,7 @@ scoped_ptr<CommitContribution>
NonBlockingTypeProcessorCore::GetContribution(size_t max_entries) {
DCHECK(CalledOnValidThread());
// TODO(rlarocque): Implement this properly. crbug.com/351005.
- VLOG(1) << "Getting commit contribution for: " << ModelTypeToString(type_);
+ DVLOG(1) << "Getting commit contribution for: " << ModelTypeToString(type_);
return scoped_ptr<CommitContribution>();
}

Powered by Google App Engine
This is Rietveld 408576698