| Index: content/browser/loader/resource_dispatcher_host_impl.cc
|
| diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc
|
| index e594cb76d5aef0b6545234d41d7bfa1bb0eee8c1..ab489ea9ad94e51b931fb7e20302944c01bb1c8b 100644
|
| --- a/content/browser/loader/resource_dispatcher_host_impl.cc
|
| +++ b/content/browser/loader/resource_dispatcher_host_impl.cc
|
| @@ -1580,7 +1580,8 @@ void ResourceDispatcherHostImpl::BeginRequest(
|
| IsUsingLoFi(request_data.lofi_state, delegate_, *new_request,
|
| resource_context,
|
| request_data.resource_type == RESOURCE_TYPE_MAIN_FRAME),
|
| - support_async_revalidation ? request_data.headers : std::string());
|
| + support_async_revalidation ? request_data.headers : std::string(),
|
| + request_data.request_body);
|
| // Request takes ownership.
|
| extra_info->AssociateWithRequest(new_request.get());
|
|
|
| @@ -1851,17 +1852,12 @@ ResourceRequestInfoImpl* ResourceDispatcherHostImpl::CreateRequestInfo(
|
| bool download,
|
| ResourceContext* context) {
|
| return new ResourceRequestInfoImpl(
|
| - PROCESS_TYPE_RENDERER,
|
| - child_id,
|
| - render_view_route_id,
|
| + PROCESS_TYPE_RENDERER, child_id, render_view_route_id,
|
| -1, // frame_tree_node_id
|
| - 0,
|
| - request_id_,
|
| - render_frame_route_id,
|
| - false, // is_main_frame
|
| - false, // parent_is_main_frame
|
| - RESOURCE_TYPE_SUB_RESOURCE,
|
| - ui::PAGE_TRANSITION_LINK,
|
| + 0, request_id_, render_frame_route_id,
|
| + false, // is_main_frame
|
| + false, // parent_is_main_frame
|
| + RESOURCE_TYPE_SUB_RESOURCE, ui::PAGE_TRANSITION_LINK,
|
| false, // should_replace_current_entry
|
| download, // is_download
|
| false, // is_stream
|
| @@ -1870,14 +1866,14 @@ ResourceRequestInfoImpl* ResourceDispatcherHostImpl::CreateRequestInfo(
|
| false, // enable_load_timing
|
| false, // enable_upload_progress
|
| false, // do_not_prompt_for_login
|
| - blink::WebReferrerPolicyDefault,
|
| - blink::WebPageVisibilityStateVisible,
|
| + blink::WebReferrerPolicyDefault, blink::WebPageVisibilityStateVisible,
|
| context,
|
| base::WeakPtr<ResourceMessageFilter>(), // filter
|
| false, // report_raw_headers
|
| true, // is_async
|
| false, // is_using_lofi
|
| - std::string()); // original_headers
|
| + std::string(), // original_headers
|
| + nullptr); // body
|
| }
|
|
|
| void ResourceDispatcherHostImpl::OnRenderFrameDeleted(
|
| @@ -2306,7 +2302,8 @@ void ResourceDispatcherHostImpl::BeginNavigationRequest(
|
| // here.
|
| // TODO(ricea): Make the feature work with stale-while-revalidate
|
| // and clean this up.
|
| - std::string()); // original_headers
|
| + std::string(), // original_headers
|
| + info.request_body);
|
| // Request takes ownership.
|
| extra_info->AssociateWithRequest(new_request.get());
|
|
|
|
|