#include "components/sync/engine/debug_info_event_listener.h"
#include <stddef.h>
#include "base/logging.h"
#include "components/sync/engine/nigori/cryptographer.h"
#include "components/sync/protocol/client_debug_info.pb.h"
#include "components/sync/protocol/encryption.pb.h"
#include "components/sync/protocol/sync_enums.pb.h"
namespace syncer {
DebugInfoEventListener::DebugInfoEventListener() = default;
DebugInfoEventListener::~DebugInfoEventListener() = default;
void DebugInfoEventListener::InitializationComplete() { … }
void DebugInfoEventListener::OnSyncCycleCompleted(
const SyncCycleSnapshot& snapshot) { … }
void DebugInfoEventListener::OnConnectionStatusChange(ConnectionStatus status) { … }
void DebugInfoEventListener::OnPassphraseRequired(
const KeyDerivationParams& key_derivation_params,
const sync_pb::EncryptedData& pending_keys) { … }
void DebugInfoEventListener::OnPassphraseAccepted() { … }
void DebugInfoEventListener::OnTrustedVaultKeyRequired() { … }
void DebugInfoEventListener::OnTrustedVaultKeyAccepted() { … }
void DebugInfoEventListener::OnEncryptedTypesChanged(
DataTypeSet encrypted_types,
bool encrypt_everything) { … }
void DebugInfoEventListener::OnCryptographerStateChanged(
Cryptographer* cryptographer,
bool has_pending_keys) { … }
void DebugInfoEventListener::OnPassphraseTypeChanged(
PassphraseType type,
base::Time explicit_passphrase_time) { … }
void DebugInfoEventListener::OnActionableProtocolError(
const SyncProtocolError& sync_error) { … }
void DebugInfoEventListener::OnMigrationRequested(DataTypeSet types) { … }
void DebugInfoEventListener::OnProtocolEvent(const ProtocolEvent& event) { … }
void DebugInfoEventListener::OnSyncStatusChanged(const SyncStatus& status) { … }
void DebugInfoEventListener::OnNudgeFromDatatype(DataType datatype) { … }
sync_pb::DebugInfo DebugInfoEventListener::GetDebugInfo() const { … }
void DebugInfoEventListener::ClearDebugInfo() { … }
void DebugInfoEventListener::CreateAndAddEvent(
sync_pb::SyncEnums::SingletonDebugEventType type) { … }
void DebugInfoEventListener::AddEventToQueue(
const sync_pb::DebugEventInfo& event_info) { … }
}