Commit b8a02559 authored by arthursonzogni's avatar arthursonzogni Committed by Commit Bot

NavigationMojoResponse: Remove the old code path [4/4]

Remove resource_request::resource_body_stream_url.

Other CLs:
  1) https://chromium-review.googlesource.com/c/chromium/src/+/1015005
  2) https://chromium-review.googlesource.com/c/chromium/src/+/1021631
  3) https://chromium-review.googlesource.com/c/chromium/src/+/1022790
* 4) https://chromium-review.googlesource.com/c/chromium/src/+/1024038

Bug: 705744
Cq-Include-Trybots: master.tryserver.chromium.linux:linux_mojo
Change-Id: I6dc6a9b3c1d8577dc1b3662773078bed7ec8e360
Reviewed-on: https://chromium-review.googlesource.com/1024038
Commit-Queue: Nasko Oskov <nasko@chromium.org>
Reviewed-by: default avatarNasko Oskov <nasko@chromium.org>
Reviewed-by: default avatarJohn Abd-El-Malek <jam@chromium.org>
Cr-Commit-Position: refs/heads/master@{#553334}
parent 1524bd18
......@@ -64,9 +64,8 @@ class URLLoaderInterceptor::Interceptor
params.url_request = std::move(url_request);
params.client = std::move(client);
params.traffic_annotation = traffic_annotation;
// We don't intercept the blob URL for plznavigate requests.
if (params.url_request.resource_body_stream_url.is_empty() &&
parent_->callback_.Run(&params))
if (parent_->callback_.Run(&params))
return;
// mock.failed.request is a special request whereby the query indicates what
......
......@@ -100,7 +100,6 @@ class TestResourceDispatcher : public ResourceDispatcher {
EXPECT_TRUE(is_sync);
peer_ = std::move(peer);
url_ = request->url;
stream_url_ = request->resource_body_stream_url;
navigation_response_override_params_ =
std::move(navigation_response_override_params);
return 1;
......
......@@ -347,7 +347,6 @@ IPC_STRUCT_TRAITS_BEGIN(network::ResourceRequest)
IPC_STRUCT_TRAITS_MEMBER(allow_download)
IPC_STRUCT_TRAITS_MEMBER(report_raw_headers)
IPC_STRUCT_TRAITS_MEMBER(previews_state)
IPC_STRUCT_TRAITS_MEMBER(resource_body_stream_url)
IPC_STRUCT_TRAITS_MEMBER(initiated_in_secure_context)
IPC_STRUCT_TRAITS_END()
......
......@@ -214,11 +214,6 @@ struct COMPONENT_EXPORT(NETWORK_CPP_BASE) ResourceRequest {
// about this.
int previews_state = 0;
// PlzNavigate: the stream url associated with a navigation. Used to get
// access to the body of the response that has already been fetched by the
// browser.
GURL resource_body_stream_url;
// Wether or not the initiator of this request is a secure context.
bool initiated_in_secure_context = false;
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment