#include "services/network/public/cpp/empty_url_loader_client.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "services/network/public/cpp/record_ontransfersizeupdate_utils.h"
#include "services/network/public/mojom/early_hints.mojom.h"
#include "services/network/public/mojom/url_response_head.mojom.h"
namespace network {
void EmptyURLLoaderClientWrapper::DrainURLRequest(
mojo::PendingReceiver<mojom::URLLoaderClient> client_receiver,
mojo::PendingRemote<mojom::URLLoader> url_loader) { … }
EmptyURLLoaderClientWrapper::EmptyURLLoaderClientWrapper(
mojo::PendingReceiver<mojom::URLLoaderClient> receiver,
mojo::PendingRemote<mojom::URLLoader> url_loader)
: … { … }
EmptyURLLoaderClientWrapper::~EmptyURLLoaderClientWrapper() = default;
void EmptyURLLoaderClientWrapper::DidDrain(
const network::URLLoaderCompletionStatus& status) { … }
void EmptyURLLoaderClientWrapper::DeleteSelf() { … }
EmptyURLLoaderClient::EmptyURLLoaderClient() = default;
EmptyURLLoaderClient::~EmptyURLLoaderClient() = default;
void EmptyURLLoaderClient::Drain(
base::OnceCallback<void(const URLLoaderCompletionStatus&)> callback) { … }
void EmptyURLLoaderClient::MaybeDone() { … }
void EmptyURLLoaderClient::OnReceiveEarlyHints(
network::mojom::EarlyHintsPtr early_hints) { … }
void EmptyURLLoaderClient::OnReceiveResponse(
const mojom::URLResponseHeadPtr head,
mojo::ScopedDataPipeConsumerHandle body,
std::optional<mojo_base::BigBuffer> cached_metadata) { … }
void EmptyURLLoaderClient::OnReceiveRedirect(
const net::RedirectInfo& redirect_info,
mojom::URLResponseHeadPtr head) { … }
void EmptyURLLoaderClient::OnUploadProgress(int64_t current_position,
int64_t total_size,
OnUploadProgressCallback callback) { … }
void EmptyURLLoaderClient::OnTransferSizeUpdated(int32_t transfer_size_diff) { … }
void EmptyURLLoaderClient::OnComplete(const URLLoaderCompletionStatus& status) { … }
void EmptyURLLoaderClient::OnDataAvailable(base::span<const uint8_t> data) { … }
void EmptyURLLoaderClient::OnDataComplete() { … }
}