#include "components/translate/core/browser/translate_url_fetcher.h"
#include "base/functional/bind.h"
#include "base/memory/ref_counted.h"
#include "components/translate/core/browser/translate_download_manager.h"
#include "components/variations/net/variations_http_headers.h"
#include "net/base/load_flags.h"
#include "net/http/http_status_code.h"
#include "net/traffic_annotation/network_traffic_annotation.h"
#include "services/network/public/cpp/resource_request.h"
#include "services/network/public/cpp/simple_url_loader.h"
namespace translate {
namespace {
const int kMaxRetry = …;
}
TranslateURLFetcher::TranslateURLFetcher()
: … { … }
TranslateURLFetcher::~TranslateURLFetcher() { … }
bool TranslateURLFetcher::Request(const GURL& url,
TranslateURLFetcher::Callback callback,
bool is_incognito) { … }
void TranslateURLFetcher::OnSimpleLoaderComplete(
std::unique_ptr<std::string> response_body) { … }
}