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

Unified Diff: components/sync/engine_impl/loopback_server/persistent_tombstone_entity.h

Issue 2969643002: Reland - Replace FakeServer's implementation with LoopbackServer invocations. (Closed)
Patch Set: Rebased on master. Created 3 years, 5 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: components/sync/engine_impl/loopback_server/persistent_tombstone_entity.h
diff --git a/components/sync/engine_impl/loopback_server/persistent_tombstone_entity.h b/components/sync/engine_impl/loopback_server/persistent_tombstone_entity.h
index ea7236d13949176e6fe99888d918c5faad090226..0531666b0743b644d012502950bae7aef88aa8c6 100644
--- a/components/sync/engine_impl/loopback_server/persistent_tombstone_entity.h
+++ b/components/sync/engine_impl/loopback_server/persistent_tombstone_entity.h
@@ -20,9 +20,13 @@ class PersistentTombstoneEntity : public LoopbackServerEntity {
~PersistentTombstoneEntity() override;
// Factory function for PersistentTombstoneEntity.
- static std::unique_ptr<LoopbackServerEntity> Create(
+ static std::unique_ptr<LoopbackServerEntity> CreateFromEntity(
const sync_pb::SyncEntity& id);
+ static std::unique_ptr<LoopbackServerEntity> CreateNew(
+ const std::string& id,
+ const std::string& client_defined_unique_tag);
+
// LoopbackServerEntity implementation.
bool RequiresParentId() const override;
std::string GetParentId() const override;
@@ -34,7 +38,11 @@ class PersistentTombstoneEntity : public LoopbackServerEntity {
private:
PersistentTombstoneEntity(const std::string& id,
int64_t version,
- const syncer::ModelType& model_type);
+ const syncer::ModelType& model_type,
+ const std::string& client_defined_unique_tag);
+
+ // The tag for this entity.
+ const std::string client_defined_unique_tag_;
};
} // namespace syncer

Powered by Google App Engine
This is Rietveld 408576698