#include "components/sync/engine/loopback_server/persistent_permanent_entity.h"
#include <memory>
#include "base/logging.h"
#include "components/sync/protocol/entity_specifics.pb.h"
#include "components/sync/protocol/loopback_server.pb.h"
#include "components/sync/protocol/sync_entity.pb.h"
string;
DataType;
namespace {
static const char kRootParentTag[] = …;
}
namespace syncer {
PersistentPermanentEntity::~PersistentPermanentEntity() = default;
std::unique_ptr<LoopbackServerEntity> PersistentPermanentEntity::CreateNew(
const DataType& data_type,
const string& server_tag,
const string& name,
const string& parent_server_tag) { … }
std::unique_ptr<LoopbackServerEntity> PersistentPermanentEntity::CreateTopLevel(
const DataType& data_type) { … }
std::unique_ptr<LoopbackServerEntity>
PersistentPermanentEntity::CreateUpdatedNigoriEntity(
const sync_pb::SyncEntity& client_entity,
const LoopbackServerEntity& current_server_entity) { … }
PersistentPermanentEntity::PersistentPermanentEntity(
const string& id,
int64_t version,
const DataType& data_type,
const string& name,
const string& parent_id,
const string& server_defined_unique_tag,
const sync_pb::EntitySpecifics& specifics)
: … { … }
bool PersistentPermanentEntity::RequiresParentId() const { … }
string PersistentPermanentEntity::GetParentId() const { … }
void PersistentPermanentEntity::SerializeAsProto(
sync_pb::SyncEntity* proto) const { … }
bool PersistentPermanentEntity::IsFolder() const { … }
bool PersistentPermanentEntity::IsPermanent() const { … }
sync_pb::LoopbackServerEntity_Type
PersistentPermanentEntity::GetLoopbackServerEntityType() const { … }
}