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

Unified Diff: sync/engine/model_type_sync_proxy_impl.h

Issue 1325453003: [Sync] rename USS processor / worker interfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove some changes Created 5 years, 4 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/model_type_sync_proxy_impl.h
diff --git a/sync/engine/model_type_sync_proxy_impl.h b/sync/engine/model_type_sync_proxy_impl.h
index 4346e2c76e6ac0b566e6ed01fecd0d4731f9036c..e231794c0d11f228903ffe4acf8e837cf3905817 100644
--- a/sync/engine/model_type_sync_proxy_impl.h
+++ b/sync/engine/model_type_sync_proxy_impl.h
@@ -15,9 +15,9 @@
#include "sync/protocol/sync.pb.h"
namespace syncer_v2 {
-class SyncContextProxy;
+class CommitQueue;
class ModelTypeEntity;
-class ModelTypeSyncWorker;
+class SyncContextProxy;
// A sync component embedded on the synced type's thread that helps to handle
// communication between sync and model type threads.
@@ -56,7 +56,7 @@ class SYNC_EXPORT_PRIVATE ModelTypeSyncProxyImpl : base::NonThreadSafe {
void Disconnect();
// Callback used to process the handshake response.
- void OnConnect(scoped_ptr<ModelTypeSyncWorker> worker);
+ void OnConnect(scoped_ptr<CommitQueue> worker);
// Requests that an item be stored in sync.
void Put(const std::string& client_tag,
@@ -98,7 +98,7 @@ class SYNC_EXPORT_PRIVATE ModelTypeSyncProxyImpl : base::NonThreadSafe {
void FlushPendingCommitRequests();
// Clears any state related to outstanding communications with the
- // ModelTypeSyncWorker. Used when we want to disconnect from
+ // CommitQueue. Used when we want to disconnect from
// the current worker.
void ClearTransientSyncState();
@@ -124,12 +124,12 @@ class SYNC_EXPORT_PRIVATE ModelTypeSyncProxyImpl : base::NonThreadSafe {
// connected to sync.
scoped_ptr<SyncContextProxy> sync_context_proxy_;
- // Reference to the ModelTypeSyncWorker.
+ // Reference to the CommitQueue.
//
// The interface hides the posting of tasks across threads as well as the
- // ModelTypeSyncWorker's implementation. Both of these features are
+ // CommitQueue's implementation. Both of these features are
// useful in tests.
- scoped_ptr<ModelTypeSyncWorker> worker_;
+ scoped_ptr<CommitQueue> worker_;
// The set of sync entities known to this object.
EntityMap entities_;

Powered by Google App Engine
This is Rietveld 408576698