#include "google_apis/gaia/gaia_access_token_fetcher.h"
#include <string>
#include "base/memory/ptr_util.h"
#include "base/metrics/histogram.h"
#include "base/metrics/histogram_functions.h"
#include "base/metrics/histogram_macros.h"
#include "google_apis/gaia/gaia_urls.h"
#include "services/network/public/cpp/shared_url_loader_factory.h"
const char GaiaAccessTokenFetcher::kOAuth2NetResponseCodeHistogramName[] = …;
const char GaiaAccessTokenFetcher::kOAuth2ResponseHistogramName[] = …;
std::unique_ptr<GaiaAccessTokenFetcher>
GaiaAccessTokenFetcher::CreateExchangeRefreshTokenForAccessTokenInstance(
OAuth2AccessTokenConsumer* consumer,
scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory,
const std::string& refresh_token) { … }
GaiaAccessTokenFetcher::GaiaAccessTokenFetcher(
OAuth2AccessTokenConsumer* consumer,
scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory,
const std::string& refresh_token)
: … { … }
GaiaAccessTokenFetcher::~GaiaAccessTokenFetcher() = default;
void GaiaAccessTokenFetcher::RecordResponseCodeUma(int error_value) const { … }
void GaiaAccessTokenFetcher::RecordOAuth2Response(
OAuth2Response response) const { … }
GURL GaiaAccessTokenFetcher::GetAccessTokenURL() const { … }
net::NetworkTrafficAnnotationTag
GaiaAccessTokenFetcher::GetTrafficAnnotationTag() const { … }