| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc
e-loading | 5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc
e-loading |
| 6 | 6 |
| 7 #include "content/browser/loader/resource_dispatcher_host_impl.h" | 7 #include "content/browser/loader/resource_dispatcher_host_impl.h" |
| 8 | 8 |
| 9 #include <stddef.h> | 9 #include <stddef.h> |
| 10 | 10 |
| (...skipping 2202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2213 -1, // request_data.origin_pid, | 2213 -1, // request_data.origin_pid, |
| 2214 MakeRequestID(), | 2214 MakeRequestID(), |
| 2215 -1, // request_data.render_frame_id, | 2215 -1, // request_data.render_frame_id, |
| 2216 info.is_main_frame, info.parent_is_main_frame, resource_type, | 2216 info.is_main_frame, info.parent_is_main_frame, resource_type, |
| 2217 info.common_params.transition, | 2217 info.common_params.transition, |
| 2218 // should_replace_current_entry. This was only maintained at layer for | 2218 // should_replace_current_entry. This was only maintained at layer for |
| 2219 // request transfers and isn't needed for browser-side navigations. | 2219 // request transfers and isn't needed for browser-side navigations. |
| 2220 false, | 2220 false, |
| 2221 false, // is download | 2221 false, // is download |
| 2222 false, // is stream | 2222 false, // is stream |
| 2223 info.common_params.allow_download, info.begin_params.has_user_gesture, | 2223 info.common_params.allow_download, |
| 2224 info.common_params.gesture == NavigationGestureUser, |
| 2224 true, // enable_load_timing | 2225 true, // enable_load_timing |
| 2225 false, // enable_upload_progress | 2226 false, // enable_upload_progress |
| 2226 false, // do_not_prompt_for_login | 2227 false, // do_not_prompt_for_login |
| 2227 info.common_params.referrer.policy, | 2228 info.common_params.referrer.policy, |
| 2228 // TODO(davidben): This is only used for prerenders. Replace | 2229 // TODO(davidben): This is only used for prerenders. Replace |
| 2229 // is_showing with something for that. Or maybe it just comes from the | 2230 // is_showing with something for that. Or maybe it just comes from the |
| 2230 // same mechanism as the cookie one. | 2231 // same mechanism as the cookie one. |
| 2231 blink::WebPageVisibilityStateVisible, resource_context, | 2232 blink::WebPageVisibilityStateVisible, resource_context, |
| 2232 info.report_raw_headers, | 2233 info.report_raw_headers, |
| 2233 true, // is_async | 2234 true, // is_async |
| (...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2813 &throttles); | 2814 &throttles); |
| 2814 if (!throttles.empty()) { | 2815 if (!throttles.empty()) { |
| 2815 handler.reset(new ThrottlingResourceHandler(std::move(handler), request, | 2816 handler.reset(new ThrottlingResourceHandler(std::move(handler), request, |
| 2816 std::move(throttles))); | 2817 std::move(throttles))); |
| 2817 } | 2818 } |
| 2818 } | 2819 } |
| 2819 return handler; | 2820 return handler; |
| 2820 } | 2821 } |
| 2821 | 2822 |
| 2822 } // namespace content | 2823 } // namespace content |
| OLD | NEW |