#include "components/sync/engine/data_type_registry.h"
#include <stddef.h>
#include <utility>
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/metrics/histogram_functions.h"
#include "base/metrics/histogram_macros.h"
#include "components/sync/engine/data_type_activation_response.h"
#include "components/sync/engine/data_type_processor.h"
#include "components/sync/engine/data_type_worker.h"
#include "components/sync/engine/nigori/cryptographer.h"
#include "components/sync/engine/nigori/keystore_keys_handler.h"
namespace syncer {
DataTypeRegistry::DataTypeRegistry(
NudgeHandler* nudge_handler,
CancelationSignal* cancelation_signal,
SyncEncryptionHandler* sync_encryption_handler)
: … { … }
DataTypeRegistry::~DataTypeRegistry() { … }
void DataTypeRegistry::ConnectDataType(
DataType type,
std::unique_ptr<DataTypeActivationResponse> activation_response) { … }
void DataTypeRegistry::DisconnectDataType(DataType type) { … }
DataTypeSet DataTypeRegistry::GetConnectedTypes() const { … }
DataTypeSet DataTypeRegistry::GetInitialSyncEndedTypes() const { … }
const UpdateHandler* DataTypeRegistry::GetUpdateHandler(DataType type) const { … }
UpdateHandler* DataTypeRegistry::GetMutableUpdateHandler(DataType type) { … }
UpdateHandlerMap* DataTypeRegistry::update_handler_map() { … }
CommitContributorMap* DataTypeRegistry::commit_contributor_map() { … }
KeystoreKeysHandler* DataTypeRegistry::keystore_keys_handler() { … }
DataTypeSet DataTypeRegistry::GetTypesWithUnsyncedData() const { … }
bool DataTypeRegistry::HasUnsyncedItems() const { … }
const std::vector<std::unique_ptr<DataTypeWorker>>&
DataTypeRegistry::GetConnectedDataTypeWorkersForTest() const { … }
base::WeakPtr<DataTypeConnector> DataTypeRegistry::AsWeakPtr() { … }
void DataTypeRegistry::OnPassphraseRequired(
const KeyDerivationParams& key_derivation_params,
const sync_pb::EncryptedData& pending_keys) { … }
void DataTypeRegistry::OnPassphraseAccepted() { … }
void DataTypeRegistry::OnTrustedVaultKeyRequired() { … }
void DataTypeRegistry::OnTrustedVaultKeyAccepted() { … }
void DataTypeRegistry::OnEncryptedTypesChanged(DataTypeSet encrypted_types,
bool encrypt_everything) { … }
void DataTypeRegistry::OnCryptographerStateChanged(
Cryptographer* cryptographer,
bool has_pending_keys) { … }
void DataTypeRegistry::OnPassphraseTypeChanged(PassphraseType type,
base::Time passphrase_time) { … }
}