#include "components/trusted_vault/recovery_key_store_controller.h"
#include "base/functional/bind.h"
#include "base/time/time.h"
#include "components/trusted_vault/proto/local_trusted_vault.pb.h"
#include "components/trusted_vault/proto_string_bytes_conversion.h"
#include "components/trusted_vault/proto_time_conversion.h"
#include "components/trusted_vault/recovery_key_store_connection.h"
#include "components/trusted_vault/securebox.h"
#include "components/trusted_vault/trusted_vault_connection.h"
namespace trusted_vault {
RecoveryKeyStoreController::RecoveryKeyProvider::~RecoveryKeyProvider() =
default;
RecoveryKeyStoreController::OngoingUpdate::OngoingUpdate() = default;
RecoveryKeyStoreController::OngoingUpdate::OngoingUpdate(OngoingUpdate&&) =
default;
RecoveryKeyStoreController::OngoingUpdate&
RecoveryKeyStoreController::OngoingUpdate::operator=(OngoingUpdate&&) = default;
RecoveryKeyStoreController::OngoingUpdate::~OngoingUpdate() = default;
RecoveryKeyStoreController::RecoveryKeyStoreController(
std::unique_ptr<RecoveryKeyProvider> recovery_key_provider,
std::unique_ptr<RecoveryKeyStoreConnection> connection,
Delegate* delegate)
: … { … }
RecoveryKeyStoreController::~RecoveryKeyStoreController() = default;
void RecoveryKeyStoreController::StartPeriodicUploads(
CoreAccountInfo account_info,
const trusted_vault_pb::RecoveryKeyStoreState& state,
base::TimeDelta update_period) { … }
void RecoveryKeyStoreController::StopPeriodicUploads() { … }
void RecoveryKeyStoreController::ScheduleNextUpdate(base::TimeDelta delay) { … }
void RecoveryKeyStoreController::StartUpdateCycle() { … }
void RecoveryKeyStoreController::OnGetCurrentRecoveryKeyStoreData(
std::optional<trusted_vault_pb::Vault> vault) { … }
void RecoveryKeyStoreController::MaybeAddRecoveryKeyToSecurityDomain() { … }
void RecoveryKeyStoreController::OnRecoveryKeyAddedToSecurityDomain(
TrustedVaultRegistrationStatus status) { … }
void RecoveryKeyStoreController::UpdateRecoveryKeyStore() { … }
void RecoveryKeyStoreController::OnUpdateRecoveryKeyStore(
UpdateRecoveryKeyStoreStatus status) { … }
void RecoveryKeyStoreController::CompleteUpdateCycle() { … }
}