#include "google_apis/common/request_sender.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/task/sequenced_task_runner.h"
#include "google_apis/common/auth_service.h"
#include "google_apis/common/base_requests.h"
namespace google_apis {
RequestSender::RequestSender(
std::unique_ptr<AuthServiceInterface> auth_service,
scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory,
const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner,
const std::string& custom_user_agent,
const net::NetworkTrafficAnnotationTag& traffic_annotation)
: … { … }
RequestSender::~RequestSender() { … }
base::RepeatingClosure RequestSender::StartRequestWithAuthRetry(
std::unique_ptr<AuthenticatedRequestInterface> request) { … }
base::RepeatingClosure RequestSender::StartRequestWithAuthRetryInternal(
AuthenticatedRequestInterface* request) { … }
void RequestSender::OnAccessTokenFetched(
const base::WeakPtr<AuthenticatedRequestInterface>& request,
ApiErrorCode code,
const std::string& ) { … }
void RequestSender::RetryRequest(AuthenticatedRequestInterface* request) { … }
void RequestSender::CancelRequest(
const base::WeakPtr<AuthenticatedRequestInterface>& request) { … }
void RequestSender::RequestFinished(AuthenticatedRequestInterface* request) { … }
}