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

Unified Diff: components/sync/engine_impl/net/loopback_server/tombstone_entity.h

Issue 2106743002: WIP: Local sync only... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix after rebase. Created 4 years, 3 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/net/loopback_server/tombstone_entity.h
diff --git a/components/sync/test/fake_server/tombstone_entity.h b/components/sync/engine_impl/net/loopback_server/tombstone_entity.h
similarity index 54%
copy from components/sync/test/fake_server/tombstone_entity.h
copy to components/sync/engine_impl/net/loopback_server/tombstone_entity.h
index 656d05dab5296b560801d2b4335f37b966ae35cd..93227c94193aafc923452f9d6ce318e6b62c231c 100644
--- a/components/sync/test/fake_server/tombstone_entity.h
+++ b/components/sync/engine_impl/net/loopback_server/tombstone_entity.h
@@ -2,28 +2,28 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_SYNC_TEST_FAKE_SERVER_TOMBSTONE_ENTITY_H_
-#define COMPONENTS_SYNC_TEST_FAKE_SERVER_TOMBSTONE_ENTITY_H_
+#ifndef COMPONENTS_SYNC_ENGINE_IMPL_NET_LOOPBACK_SERVER_TOMBSTONE_ENTITY_H_
+#define COMPONENTS_SYNC_ENGINE_IMPL_NET_LOOPBACK_SERVER_TOMBSTONE_ENTITY_H_
+#include <memory>
#include <string>
#include "components/sync/base/model_type.h"
+#include "components/sync/engine_impl/net/loopback_server/loopback_server_entity.h"
#include "components/sync/protocol/sync.pb.h"
-#include "components/sync/test/fake_server/fake_server_entity.h"
-namespace fake_server {
+namespace syncer {
// A Sync entity that represents a deleted item.
-class TombstoneEntity : public FakeServerEntity {
+class TombstoneEntity : public LoopbackServerEntity {
public:
~TombstoneEntity() override;
// Factory function for TombstoneEntity.
- static std::unique_ptr<FakeServerEntity> Create(
- const std::string& id,
- const std::string& client_defined_unique_tag);
+ static std::unique_ptr<LoopbackServerEntity> Create(
+ const sync_pb::SyncEntity& id);
- // FakeServerEntity implementation.
+ // LoopbackServerEntity implementation.
bool RequiresParentId() const override;
std::string GetParentId() const override;
void SerializeAsProto(sync_pb::SyncEntity* proto) const override;
@@ -31,10 +31,10 @@ class TombstoneEntity : public FakeServerEntity {
private:
TombstoneEntity(const std::string& id,
- const std::string& client_defined_unique_tag,
+ int64_t version,
const syncer::ModelType& model_type);
};
-} // namespace fake_server
+} // namespace syncer
-#endif // COMPONENTS_SYNC_TEST_FAKE_SERVER_TOMBSTONE_ENTITY_H_
+#endif // COMPONENTS_SYNC_ENGINE_IMPL_NET_LOOPBACK_SERVER_TOMBSTONE_ENTITY_H_

Powered by Google App Engine
This is Rietveld 408576698