summaryrefslogtreecommitdiffstats
path: root/sync/engine/worker_entity_tracker.h
diff options
context:
space:
mode:
Diffstat (limited to 'sync/engine/worker_entity_tracker.h')
-rw-r--r--sync/engine/worker_entity_tracker.h20
1 files changed, 5 insertions, 15 deletions
diff --git a/sync/engine/worker_entity_tracker.h b/sync/engine/worker_entity_tracker.h
index 5f413e0..b4af987 100644
--- a/sync/engine/worker_entity_tracker.h
+++ b/sync/engine/worker_entity_tracker.h
@@ -33,15 +33,12 @@ struct UpdateResponseData;
// update, or both.
class SYNC_EXPORT WorkerEntityTracker {
public:
- ~WorkerEntityTracker();
-
- // Initialize a new entity based on an update response.
- static scoped_ptr<WorkerEntityTracker> FromUpdateResponse(
- const UpdateResponseData& data);
+ // Initializes the entity tracker's main fields. Does not initialize state
+ // related to a pending commit.
+ WorkerEntityTracker(const std::string& id,
+ const std::string& client_tag_hash);
- // Initialize a new entity based on a commit request.
- static scoped_ptr<WorkerEntityTracker> FromCommitRequest(
- const CommitRequestData& data);
+ ~WorkerEntityTracker();
// Returns true if this entity should be commited to the server.
bool HasPendingCommit() const;
@@ -83,13 +80,6 @@ class SYNC_EXPORT WorkerEntityTracker {
void ClearPendingUpdate();
private:
- // Initializes the entity tracker's main fields. Does not initialize state
- // related to a pending commit.
- WorkerEntityTracker(const std::string& id,
- const std::string& client_tag_hash,
- int64_t highest_commit_response_version,
- int64_t highest_gu_response_version);
-
// Checks if the current state indicates a conflict.
//
// This can be true only while a call to this object is in progress.