mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
2725403: Add URLLoaderClient::OnReceiveEarlyHints()
https://chromium-review.googlesource.com/c/chromium/src/+/2725403
This commit is contained in:
@@ -240,6 +240,10 @@ void ProxyingURLLoaderFactory::InProgressRequest::OnReceiveResponse(
|
||||
}
|
||||
}
|
||||
|
||||
void OnReceiveEarlyHints(network::mojom::EarlyHintsPtr early_hints) {
|
||||
target_client_->OnReceiveEarlyHints(std::move(early_hints));
|
||||
}
|
||||
|
||||
void ProxyingURLLoaderFactory::InProgressRequest::OnReceiveRedirect(
|
||||
const net::RedirectInfo& redirect_info,
|
||||
network::mojom::URLResponseHeadPtr head) {
|
||||
|
||||
@@ -74,6 +74,8 @@ class ProxyingURLLoaderFactory
|
||||
|
||||
// network::mojom::URLLoaderClient:
|
||||
void OnReceiveResponse(network::mojom::URLResponseHeadPtr head) override;
|
||||
void OnReceiveEarlyHints(
|
||||
network::mojom::EarlyHintsPtr early_hints) override;
|
||||
void OnReceiveRedirect(const net::RedirectInfo& redirect_info,
|
||||
network::mojom::URLResponseHeadPtr head) override;
|
||||
void OnUploadProgress(int64_t current_position,
|
||||
|
||||
Reference in New Issue
Block a user