#include "components/safe_browsing/core/browser/sync/safe_browsing_primary_account_token_fetcher.h"
#include "base/functional/bind.h"
#include "base/memory/weak_ptr.h"
#include "base/metrics/histogram_macros.h"
#include "components/signin/public/base/consent_level.h"
#include "components/signin/public/identity_manager/access_token_fetcher.h"
#include "components/signin/public/identity_manager/access_token_info.h"
#include "components/signin/public/identity_manager/identity_manager.h"
#include "google_apis/gaia/core_account_id.h"
#include "google_apis/gaia/gaia_constants.h"
#include "google_apis/gaia/google_service_auth_error.h"
namespace safe_browsing {
SafeBrowsingPrimaryAccountTokenFetcher::SafeBrowsingPrimaryAccountTokenFetcher(
signin::IdentityManager* identity_manager)
: … { … }
SafeBrowsingPrimaryAccountTokenFetcher::
~SafeBrowsingPrimaryAccountTokenFetcher() = default;
void SafeBrowsingPrimaryAccountTokenFetcher::Start(
Callback callback) { … }
void SafeBrowsingPrimaryAccountTokenFetcher::OnInvalidAccessToken(
const std::string& invalid_access_token) { … }
void SafeBrowsingPrimaryAccountTokenFetcher::OnTokenFetched(
int request_id,
GoogleServiceAuthError error,
signin::AccessTokenInfo access_token_info) { … }
void SafeBrowsingPrimaryAccountTokenFetcher::OnTokenTimeout(int request_id) { … }
}