#include "components/trusted_vault/trusted_vault_access_token_fetcher_frontend.h"
#include <utility>
#include "base/types/expected.h"
#include "components/signin/public/identity_manager/access_token_info.h"
#include "components/signin/public/identity_manager/primary_account_access_token_fetcher.h"
#include "components/trusted_vault/trusted_vault_access_token_fetcher.h"
namespace trusted_vault {
namespace {
const char kCryptAuthOAuth2Scope[] = …;
}
TrustedVaultAccessTokenFetcherFrontend::TrustedVaultAccessTokenFetcherFrontend(
signin::IdentityManager* identity_manager)
: … { … }
TrustedVaultAccessTokenFetcherFrontend::
~TrustedVaultAccessTokenFetcherFrontend() { … }
base::WeakPtr<TrustedVaultAccessTokenFetcherFrontend>
TrustedVaultAccessTokenFetcherFrontend::GetWeakPtr() { … }
void TrustedVaultAccessTokenFetcherFrontend::FetchAccessToken(
const CoreAccountId& account_id,
TrustedVaultAccessTokenFetcher::TokenCallback callback) { … }
void TrustedVaultAccessTokenFetcherFrontend::OnPrimaryAccountChanged(
const signin::PrimaryAccountChangeEvent& event) { … }
void TrustedVaultAccessTokenFetcherFrontend::UpdatePrimaryAccountIfNeeded() { … }
void TrustedVaultAccessTokenFetcherFrontend::StartAccessTokenFetch() { … }
void TrustedVaultAccessTokenFetcherFrontend::OnAccessTokenFetchCompleted(
GoogleServiceAuthError error,
signin::AccessTokenInfo access_token_info) { … }
void TrustedVaultAccessTokenFetcherFrontend::FulfillPendingRequests(
TrustedVaultAccessTokenFetcher::AccessTokenInfoOrError
access_token_or_error) { … }
}