#include "content/services/auction_worklet/public/cpp/auction_network_events_delegate.h"
#include <string>
#include <utility>
#include "content/services/auction_worklet/public/cpp/auction_downloader.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "mojo/public/cpp/bindings/remote.h"
namespace auction_worklet {
MojoNetworkEventsDelegate::MojoNetworkEventsDelegate(
mojo::PendingRemote<auction_worklet::mojom::AuctionNetworkEventsHandler>
remote)
: … { … }
MojoNetworkEventsDelegate::~MojoNetworkEventsDelegate() = default;
void MojoNetworkEventsDelegate::OnNetworkSendRequest(
network::ResourceRequest& request) { … }
void MojoNetworkEventsDelegate::OnNetworkResponseReceived(
const GURL& url,
const network::mojom::URLResponseHead& head) { … }
void MojoNetworkEventsDelegate::OnNetworkRequestComplete(
const network::URLLoaderCompletionStatus& status) { … }
mojo::PendingRemote<auction_worklet::mojom::AuctionNetworkEventsHandler>
CreateNewAuctionNetworkEventsHandlerRemote(
const mojo::Remote<auction_worklet::mojom::AuctionNetworkEventsHandler>&
remote) { … }
}