| 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 1447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1458 -1, // frame_tree_node_id | 1458 -1, // frame_tree_node_id |
| 1459 request_data.origin_pid, request_id, request_data.render_frame_id, | 1459 request_data.origin_pid, request_id, request_data.render_frame_id, |
| 1460 request_data.is_main_frame, request_data.parent_is_main_frame, | 1460 request_data.is_main_frame, request_data.parent_is_main_frame, |
| 1461 request_data.resource_type, request_data.transition_type, | 1461 request_data.resource_type, request_data.transition_type, |
| 1462 request_data.should_replace_current_entry, | 1462 request_data.should_replace_current_entry, |
| 1463 false, // is download | 1463 false, // is download |
| 1464 false, // is stream | 1464 false, // is stream |
| 1465 allow_download, request_data.has_user_gesture, | 1465 allow_download, request_data.has_user_gesture, |
| 1466 request_data.enable_load_timing, request_data.enable_upload_progress, | 1466 request_data.enable_load_timing, request_data.enable_upload_progress, |
| 1467 do_not_prompt_for_login, request_data.referrer_policy, | 1467 do_not_prompt_for_login, request_data.referrer_policy, |
| 1468 request_data.visiblity_state, resource_context, filter_->GetWeakPtr(), | 1468 request_data.visibility_state, resource_context, filter_->GetWeakPtr(), |
| 1469 report_raw_headers, !is_sync_load, | 1469 report_raw_headers, !is_sync_load, |
| 1470 IsUsingLoFi(request_data.lofi_state, delegate_, *new_request, | 1470 IsUsingLoFi(request_data.lofi_state, delegate_, *new_request, |
| 1471 resource_context, | 1471 resource_context, |
| 1472 request_data.resource_type == RESOURCE_TYPE_MAIN_FRAME), | 1472 request_data.resource_type == RESOURCE_TYPE_MAIN_FRAME), |
| 1473 support_async_revalidation ? request_data.headers : std::string(), | 1473 support_async_revalidation ? request_data.headers : std::string(), |
| 1474 request_data.request_body, request_data.initiated_in_secure_context); | 1474 request_data.request_body, request_data.initiated_in_secure_context); |
| 1475 // Request takes ownership. | 1475 // Request takes ownership. |
| 1476 extra_info->AssociateWithRequest(new_request.get()); | 1476 extra_info->AssociateWithRequest(new_request.get()); |
| 1477 | 1477 |
| 1478 if (new_request->url().SchemeIs(url::kBlobScheme)) { | 1478 if (new_request->url().SchemeIs(url::kBlobScheme)) { |
| (...skipping 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2710 &throttles); | 2710 &throttles); |
| 2711 if (!throttles.empty()) { | 2711 if (!throttles.empty()) { |
| 2712 handler.reset(new ThrottlingResourceHandler(std::move(handler), request, | 2712 handler.reset(new ThrottlingResourceHandler(std::move(handler), request, |
| 2713 std::move(throttles))); | 2713 std::move(throttles))); |
| 2714 } | 2714 } |
| 2715 } | 2715 } |
| 2716 return handler; | 2716 return handler; |
| 2717 } | 2717 } |
| 2718 | 2718 |
| 2719 } // namespace content | 2719 } // namespace content |
| OLD | NEW |