#include "components/sync/model/sync_data.h"
#include <algorithm>
#include <ostream>
#include <utility>
#include "base/json/json_writer.h"
#include "base/memory/ref_counted.h"
#include "base/values.h"
#include "components/sync/base/client_tag_hash.h"
#include "components/sync/protocol/entity_specifics.pb.h"
#include "components/sync/protocol/proto_value_conversions.h"
namespace syncer {
struct SyncData::InternalData
: public base::RefCountedThreadSafe<InternalData> { … };
SyncData::SyncData() = default;
SyncData::SyncData(scoped_refptr<InternalData> ptr) : … { … }
SyncData::SyncData(const SyncData& other) = default;
SyncData::SyncData(SyncData&& other) = default;
SyncData& SyncData::operator=(const SyncData& other) = default;
SyncData& SyncData::operator=(SyncData&& other) = default;
SyncData::~SyncData() = default;
SyncData SyncData::CreateLocalDelete(std::string_view client_tag_unhashed,
DataType datatype) { … }
SyncData SyncData::CreateLocalData(std::string_view client_tag_unhashed,
std::string_view non_unique_title,
const sync_pb::EntitySpecifics& specifics) { … }
SyncData SyncData::CreateRemoteData(sync_pb::EntitySpecifics specifics,
const ClientTagHash& client_tag_hash) { … }
bool SyncData::IsValid() const { … }
const sync_pb::EntitySpecifics& SyncData::GetSpecifics() const { … }
DataType SyncData::GetDataType() const { … }
ClientTagHash SyncData::GetClientTagHash() const { … }
const std::string& SyncData::GetTitle() const { … }
std::string SyncData::ToString() const { … }
void PrintTo(const SyncData& sync_data, std::ostream* os) { … }
}