#include "components/dom_distiller/core/distiller_url_fetcher.h"
#include "base/functional/bind.h"
#include "net/traffic_annotation/network_traffic_annotation.h"
#include "services/network/public/cpp/resource_request.h"
#include "services/network/public/cpp/shared_url_loader_factory.h"
#include "services/network/public/cpp/simple_url_loader.h"
#include "url/gurl.h"
namespace dom_distiller {
DistillerURLFetcherFactory::DistillerURLFetcherFactory(
scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory)
: … { … }
DistillerURLFetcherFactory::~DistillerURLFetcherFactory() { … }
DistillerURLFetcher* DistillerURLFetcherFactory::CreateDistillerURLFetcher()
const { … }
DistillerURLFetcher::DistillerURLFetcher(
scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory)
: … { … }
DistillerURLFetcher::~DistillerURLFetcher() { … }
void DistillerURLFetcher::FetchURL(const std::string& url,
URLFetcherCallback callback) { … }
std::unique_ptr<network::SimpleURLLoader> DistillerURLFetcher::CreateURLFetcher(
const std::string& url) { … }
void DistillerURLFetcher::OnURLLoadComplete(
std::unique_ptr<std::string> response_body) { … }
}