| Index: content/browser/loader/resource_request_info_impl.cc
|
| diff --git a/content/browser/loader/resource_request_info_impl.cc b/content/browser/loader/resource_request_info_impl.cc
|
| index 20ce8d98cea9c631dfd396e810c0934062b839ea..e7f4c1d96e0db43e6cbfa8ac8b9c1afb994fe0a4 100644
|
| --- a/content/browser/loader/resource_request_info_impl.cc
|
| +++ b/content/browser/loader/resource_request_info_impl.cc
|
| @@ -41,33 +41,33 @@ void ResourceRequestInfo::AllocateForTesting(net::URLRequest* request,
|
| // the main frame.
|
| DCHECK(resource_type != RESOURCE_TYPE_MAIN_FRAME || is_main_frame);
|
|
|
| - ResourceRequestInfoImpl* info =
|
| - new ResourceRequestInfoImpl(
|
| - PROCESS_TYPE_RENDERER, // process_type
|
| - render_process_id, // child_id
|
| - render_view_id, // route_id
|
| - -1, // frame_tree_node_id
|
| - 0, // origin_pid
|
| - 0, // request_id
|
| - render_frame_id, // render_frame_id
|
| - is_main_frame, // is_main_frame
|
| - parent_is_main_frame, // parent_is_main_frame
|
| - 0, // parent_render_frame_id
|
| - resource_type, // resource_type
|
| - ui::PAGE_TRANSITION_LINK, // transition_type
|
| - false, // should_replace_current_entry
|
| - false, // is_download
|
| - false, // is_stream
|
| - allow_download, // allow_download
|
| - false, // has_user_gesture
|
| - false, // enable load timing
|
| - request->has_upload(), // enable upload progress
|
| - false, // do_not_prompt_for_login
|
| - blink::WebReferrerPolicyDefault, // referrer_policy
|
| - blink::WebPageVisibilityStateVisible, // visibility_state
|
| - context, // context
|
| - base::WeakPtr<ResourceMessageFilter>(), // filter
|
| - is_async); // is_async
|
| + ResourceRequestInfoImpl* info = new ResourceRequestInfoImpl(
|
| + PROCESS_TYPE_RENDERER, // process_type
|
| + render_process_id, // child_id
|
| + render_view_id, // route_id
|
| + -1, // frame_tree_node_id
|
| + 0, // origin_pid
|
| + 0, // request_id
|
| + render_frame_id, // render_frame_id
|
| + is_main_frame, // is_main_frame
|
| + parent_is_main_frame, // parent_is_main_frame
|
| + 0, // parent_render_frame_id
|
| + resource_type, // resource_type
|
| + ui::PAGE_TRANSITION_LINK, // transition_type
|
| + false, // should_replace_current_entry
|
| + false, // is_download
|
| + false, // is_stream
|
| + allow_download, // allow_download
|
| + false, // has_user_gesture
|
| + false, // enable load timing
|
| + request->has_upload(), // enable upload progress
|
| + false, // do_not_prompt_for_login
|
| + blink::WebReferrerPolicyDefault, // referrer_policy
|
| + blink::WebPageVisibilityStateVisible, // visibility_state
|
| + context, // context
|
| + base::WeakPtr<ResourceMessageFilter>(), // filter
|
| + is_async, // is_async
|
| + std::string()); // original_headers
|
| info->AssociateWithRequest(request);
|
| }
|
|
|
| @@ -125,7 +125,8 @@ ResourceRequestInfoImpl::ResourceRequestInfoImpl(
|
| blink::WebPageVisibilityState visibility_state,
|
| ResourceContext* context,
|
| base::WeakPtr<ResourceMessageFilter> filter,
|
| - bool is_async)
|
| + bool is_async,
|
| + const std::string& original_headers)
|
| : cross_site_handler_(NULL),
|
| detachable_handler_(NULL),
|
| process_type_(process_type),
|
| @@ -155,8 +156,8 @@ ResourceRequestInfoImpl::ResourceRequestInfoImpl(
|
| visibility_state_(visibility_state),
|
| context_(context),
|
| filter_(filter),
|
| - is_async_(is_async) {
|
| -}
|
| + is_async_(is_async),
|
| + original_headers_(original_headers) {}
|
|
|
| ResourceRequestInfoImpl::~ResourceRequestInfoImpl() {
|
| }
|
|
|