chromium/components/sync/model/sync_data.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {

// TODO(crbug.com/40733890): Avoid using thread-safe refcounting, since it's
// only needed by a few (one?) browser test.
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;

// Static.
SyncData SyncData::CreateLocalDelete(std::string_view client_tag_unhashed,
                                     DataType datatype) {}

// Static.
SyncData SyncData::CreateLocalData(std::string_view client_tag_unhashed,
                                   std::string_view non_unique_title,
                                   const sync_pb::EntitySpecifics& specifics) {}

// Static.
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) {}

}  // namespace syncer