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

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

Issue 2887343002: wip 3 (Closed)
Patch Set: cleanup Created 3 years, 7 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..1f2a1f698fcd0e01443bc02bb234785d4309eb98 100644
--- a/components/sync/engine_impl/loopback_server/persistent_tombstone_entity.h
+++ b/components/sync/engine_impl/loopback_server/persistent_tombstone_entity.h
@@ -23,6 +23,10 @@ class PersistentTombstoneEntity : public LoopbackServerEntity {
static std::unique_ptr<LoopbackServerEntity> Create(
const sync_pb::SyncEntity& id);
+ static std::unique_ptr<LoopbackServerEntity> CreateForInjection(
+ 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