#include "content/browser/media/url_provision_fetcher.h"
#include "base/functional/bind.h"
#include "base/metrics/histogram_functions.h"
#include "content/public/browser/provision_fetcher_factory.h"
#include "media/base/media_switches.h"
#include "net/base/load_flags.h"
#include "net/http/http_util.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 "services/network/public/mojom/url_response_head.mojom.h"
namespace content {
URLProvisionFetcher::URLProvisionFetcher(
scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory)
: … { … }
URLProvisionFetcher::~URLProvisionFetcher() { … }
void URLProvisionFetcher::Retrieve(
const GURL& default_url,
const std::string& request_data,
media::ProvisionFetcher::ResponseCB response_cb) { … }
void URLProvisionFetcher::OnSimpleLoaderComplete(
std::unique_ptr<std::string> response_body) { … }
std::unique_ptr<media::ProvisionFetcher> CreateProvisionFetcher(
scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory) { … }
}