#include "content/browser/loader/subresource_proxying_url_loader.h"
#include "content/browser/browsing_topics/browsing_topics_url_loader_interceptor.h"
#include "content/browser/interest_group/ad_auction_url_loader_interceptor.h"
#include "services/network/public/cpp/shared_url_loader_factory.h"
#include "services/network/public/mojom/early_hints.mojom.h"
namespace content {
SubresourceProxyingURLLoader::SubresourceProxyingURLLoader(
WeakDocumentPtr document,
int32_t request_id,
uint32_t options,
const network::ResourceRequest& resource_request,
mojo::PendingRemote<network::mojom::URLLoaderClient> client,
const net::MutableNetworkTrafficAnnotationTag& traffic_annotation,
scoped_refptr<network::SharedURLLoaderFactory> network_loader_factory)
: … { … }
SubresourceProxyingURLLoader::~SubresourceProxyingURLLoader() = default;
void SubresourceProxyingURLLoader::FollowRedirect(
const std::vector<std::string>& removed_headers,
const net::HttpRequestHeaders& modified_headers,
const net::HttpRequestHeaders& modified_cors_exempt_headers,
const std::optional<GURL>& new_url) { … }
void SubresourceProxyingURLLoader::SetPriority(net::RequestPriority priority,
int intra_priority_value) { … }
void SubresourceProxyingURLLoader::PauseReadingBodyFromNet() { … }
void SubresourceProxyingURLLoader::ResumeReadingBodyFromNet() { … }
void SubresourceProxyingURLLoader::OnReceiveEarlyHints(
network::mojom::EarlyHintsPtr early_hints) { … }
void SubresourceProxyingURLLoader::OnReceiveResponse(
network::mojom::URLResponseHeadPtr head,
mojo::ScopedDataPipeConsumerHandle body,
std::optional<mojo_base::BigBuffer> cached_metadata) { … }
void SubresourceProxyingURLLoader::OnReceiveRedirect(
const net::RedirectInfo& redirect_info,
network::mojom::URLResponseHeadPtr head) { … }
void SubresourceProxyingURLLoader::OnUploadProgress(
int64_t current_position,
int64_t total_size,
base::OnceCallback<void()> callback) { … }
void SubresourceProxyingURLLoader::OnTransferSizeUpdated(
int32_t transfer_size_diff) { … }
void SubresourceProxyingURLLoader::OnComplete(
const network::URLLoaderCompletionStatus& status) { … }
void SubresourceProxyingURLLoader::OnNetworkConnectionError() { … }
}