#include "components/sync/model/data_type_sync_bridge.h"
#include <utility>
#include "base/notreached.h"
#include "components/sync/model/conflict_resolution.h"
#include "components/sync/model/data_batch.h"
#include "components/sync/model/metadata_batch.h"
#include "components/sync/model/metadata_change_list.h"
#include "components/sync/protocol/entity_data.h"
#include "components/sync/protocol/entity_specifics.pb.h"
#include "components/sync/protocol/unique_position.pb.h"
namespace syncer {
DataTypeSyncBridge::DataTypeSyncBridge(
std::unique_ptr<DataTypeLocalChangeProcessor> change_processor)
: … { … }
DataTypeSyncBridge::~DataTypeSyncBridge() = default;
void DataTypeSyncBridge::OnSyncStarting(
const DataTypeActivationRequest& request) { … }
bool DataTypeSyncBridge::SupportsGetClientTag() const { … }
bool DataTypeSyncBridge::SupportsGetStorageKey() const { … }
bool DataTypeSyncBridge::SupportsIncrementalUpdates() const { … }
bool DataTypeSyncBridge::SupportsUniquePositions() const { … }
sync_pb::UniquePosition DataTypeSyncBridge::GetUniquePosition(
const sync_pb::EntitySpecifics& specifics) const { … }
ConflictResolution DataTypeSyncBridge::ResolveConflict(
const std::string& storage_key,
const EntityData& remote_data) const { … }
void DataTypeSyncBridge::ApplyDisableSyncChanges(
std::unique_ptr<MetadataChangeList> delete_metadata_change_list) { … }
void DataTypeSyncBridge::OnCommitAttemptErrors(
const syncer::FailedCommitResponseDataList& error_response_list) { … }
void DataTypeSyncBridge::OnSyncPaused() { … }
DataTypeSyncBridge::CommitAttemptFailedBehavior
DataTypeSyncBridge::OnCommitAttemptFailed(SyncCommitError commit_error) { … }
size_t DataTypeSyncBridge::EstimateSyncOverheadMemoryUsage() const { … }
sync_pb::EntitySpecifics
DataTypeSyncBridge::TrimAllSupportedFieldsFromRemoteSpecifics(
const sync_pb::EntitySpecifics& entity_specifics) const { … }
bool DataTypeSyncBridge::IsEntityDataValid(
const EntityData& entity_data) const { … }
DataTypeLocalChangeProcessor* DataTypeSyncBridge::change_processor() { … }
const DataTypeLocalChangeProcessor* DataTypeSyncBridge::change_processor() const { … }
}