#include "components/sync/test/forwarding_data_type_local_change_processor.h"
#include <utility>
#include "base/trace_event/trace_event.h"
#include "components/sync/model/metadata_batch.h"
#include "components/sync/protocol/entity_data.h"
#include "components/sync/protocol/unique_position.pb.h"
namespace syncer {
ForwardingDataTypeLocalChangeProcessor::ForwardingDataTypeLocalChangeProcessor(
DataTypeLocalChangeProcessor* other)
: … { … }
ForwardingDataTypeLocalChangeProcessor::~ForwardingDataTypeLocalChangeProcessor() =
default;
void ForwardingDataTypeLocalChangeProcessor::Put(
const std::string& client_tag,
std::unique_ptr<EntityData> entity_data,
MetadataChangeList* metadata_change_list) { … }
void ForwardingDataTypeLocalChangeProcessor::Delete(
const std::string& client_tag,
const DeletionOrigin& origin,
MetadataChangeList* metadata_change_list) { … }
void ForwardingDataTypeLocalChangeProcessor::UpdateStorageKey(
const EntityData& entity_data,
const std::string& storage_key,
MetadataChangeList* metadata_change_list) { … }
void ForwardingDataTypeLocalChangeProcessor::UntrackEntityForStorageKey(
const std::string& storage_key) { … }
void ForwardingDataTypeLocalChangeProcessor::UntrackEntityForClientTagHash(
const ClientTagHash& client_tag_hash) { … }
std::vector<std::string>
ForwardingDataTypeLocalChangeProcessor::GetAllTrackedStorageKeys() const { … }
bool ForwardingDataTypeLocalChangeProcessor::IsEntityUnsynced(
const std::string& storage_key) const { … }
base::Time ForwardingDataTypeLocalChangeProcessor::GetEntityCreationTime(
const std::string& storage_key) const { … }
base::Time ForwardingDataTypeLocalChangeProcessor::GetEntityModificationTime(
const std::string& storage_key) const { … }
void ForwardingDataTypeLocalChangeProcessor::OnModelStarting(
DataTypeSyncBridge* bridge) { … }
void ForwardingDataTypeLocalChangeProcessor::ModelReadyToSync(
std::unique_ptr<MetadataBatch> batch) { … }
bool ForwardingDataTypeLocalChangeProcessor::IsTrackingMetadata() const { … }
std::string ForwardingDataTypeLocalChangeProcessor::TrackedAccountId() const { … }
std::string ForwardingDataTypeLocalChangeProcessor::TrackedCacheGuid() const { … }
void ForwardingDataTypeLocalChangeProcessor::ReportError(const ModelError& error) { … }
std::optional<ModelError> ForwardingDataTypeLocalChangeProcessor::GetError() const { … }
base::WeakPtr<DataTypeControllerDelegate>
ForwardingDataTypeLocalChangeProcessor::GetControllerDelegate() { … }
const sync_pb::EntitySpecifics&
ForwardingDataTypeLocalChangeProcessor::GetPossiblyTrimmedRemoteSpecifics(
const std::string& storage_key) const { … }
sync_pb::UniquePosition ForwardingDataTypeLocalChangeProcessor::UniquePositionAfter(
const std::string& storage_key_before,
const ClientTagHash& target_client_tag_hash) const { … }
sync_pb::UniquePosition
ForwardingDataTypeLocalChangeProcessor::UniquePositionBefore(
const std::string& storage_key_after,
const ClientTagHash& target_client_tag_hash) const { … }
sync_pb::UniquePosition
ForwardingDataTypeLocalChangeProcessor::UniquePositionBetween(
const std::string& storage_key_before,
const std::string& storage_key_after,
const ClientTagHash& target_client_tag_hash) const { … }
sync_pb::UniquePosition
ForwardingDataTypeLocalChangeProcessor::UniquePositionForInitialEntity(
const ClientTagHash& target_client_tag_hash) const { … }
sync_pb::UniquePosition
ForwardingDataTypeLocalChangeProcessor::GetUniquePositionForStorageKey(
const std::string& storage_key) const { … }
base::WeakPtr<DataTypeLocalChangeProcessor>
ForwardingDataTypeLocalChangeProcessor::GetWeakPtr() { … }
}