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

Unified Diff: sync/internal_api/public/model_type_processor.h

Issue 1671773002: [Sync] USS: Rename SharedModelTypeProcessor::Start and related methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@smtp
Patch Set: Rebase. Created 4 years, 10 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/internal_api/public/model_type_processor.h
diff --git a/sync/internal_api/public/model_type_processor.h b/sync/internal_api/public/model_type_processor.h
index 297b48f0edc7f2ffc19ea6aab1833116e2e3da28..4ab49468b8386cd671cd821a1ba29f1e0375ae3b 100644
--- a/sync/internal_api/public/model_type_processor.h
+++ b/sync/internal_api/public/model_type_processor.h
@@ -19,8 +19,11 @@ class SYNC_EXPORT ModelTypeProcessor {
ModelTypeProcessor();
virtual ~ModelTypeProcessor();
- // Callback used to process the handshake response from the worker.
- virtual void OnConnect(scoped_ptr<CommitQueue> commit_queue) = 0;
+ // Connect this processor to the sync engine via |commit_queue|. Once called,
+ // the processor will send any pending and future commits via this channel.
+ // This can only be called multiple times if the processor is disconnected
+ // (via the DataTypeController) in between.
+ virtual void ConnectSync(scoped_ptr<CommitQueue> commit_queue) = 0;
// Informs this object that some of its commit requests have been
// successfully serviced.

Powered by Google App Engine
This is Rietveld 408576698