| 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 <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 945 route_id, | 945 route_id, |
| 946 request_data.origin_pid, | 946 request_data.origin_pid, |
| 947 request_id, | 947 request_id, |
| 948 request_data.is_main_frame, | 948 request_data.is_main_frame, |
| 949 request_data.frame_id, | 949 request_data.frame_id, |
| 950 request_data.parent_is_main_frame, | 950 request_data.parent_is_main_frame, |
| 951 request_data.parent_frame_id, | 951 request_data.parent_frame_id, |
| 952 request_data.resource_type, | 952 request_data.resource_type, |
| 953 request_data.transition_type, | 953 request_data.transition_type, |
| 954 false, // is download | 954 false, // is download |
| 955 false, // is stream |
| 955 allow_download, | 956 allow_download, |
| 956 request_data.has_user_gesture, | 957 request_data.has_user_gesture, |
| 957 request_data.referrer_policy, | 958 request_data.referrer_policy, |
| 958 resource_context); | 959 resource_context); |
| 959 extra_info->AssociateWithRequest(request); // Request takes ownership. | 960 extra_info->AssociateWithRequest(request); // Request takes ownership. |
| 960 | 961 |
| 961 if (request->url().SchemeIs(chrome::kBlobScheme)) { | 962 if (request->url().SchemeIs(chrome::kBlobScheme)) { |
| 962 // Hang on to a reference to ensure the blob is not released prior | 963 // Hang on to a reference to ensure the blob is not released prior |
| 963 // to the job being started. | 964 // to the job being started. |
| 964 extra_info->set_requested_blob_data( | 965 extra_info->set_requested_blob_data( |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1139 route_id, | 1140 route_id, |
| 1140 0, | 1141 0, |
| 1141 request_id_, | 1142 request_id_, |
| 1142 false, // is_main_frame | 1143 false, // is_main_frame |
| 1143 -1, // frame_id | 1144 -1, // frame_id |
| 1144 false, // parent_is_main_frame | 1145 false, // parent_is_main_frame |
| 1145 -1, // parent_frame_id | 1146 -1, // parent_frame_id |
| 1146 ResourceType::SUB_RESOURCE, | 1147 ResourceType::SUB_RESOURCE, |
| 1147 PAGE_TRANSITION_LINK, | 1148 PAGE_TRANSITION_LINK, |
| 1148 download, // is_download | 1149 download, // is_download |
| 1150 false, // is_stream |
| 1149 download, // allow_download | 1151 download, // allow_download |
| 1150 false, // has_user_gesture | 1152 false, // has_user_gesture |
| 1151 WebKit::WebReferrerPolicyDefault, | 1153 WebKit::WebReferrerPolicyDefault, |
| 1152 context); | 1154 context); |
| 1153 } | 1155 } |
| 1154 | 1156 |
| 1155 | 1157 |
| 1156 void ResourceDispatcherHostImpl::OnSwapOutACK( | 1158 void ResourceDispatcherHostImpl::OnSwapOutACK( |
| 1157 const ViewMsg_SwapOut_Params& params) { | 1159 const ViewMsg_SwapOut_Params& params) { |
| 1158 HandleSwapOutACK(params, false); | 1160 HandleSwapOutACK(params, false); |
| (...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1701 | 1703 |
| 1702 return i->second.get(); | 1704 return i->second.get(); |
| 1703 } | 1705 } |
| 1704 | 1706 |
| 1705 ResourceLoader* ResourceDispatcherHostImpl::GetLoader(int child_id, | 1707 ResourceLoader* ResourceDispatcherHostImpl::GetLoader(int child_id, |
| 1706 int request_id) const { | 1708 int request_id) const { |
| 1707 return GetLoader(GlobalRequestID(child_id, request_id)); | 1709 return GetLoader(GlobalRequestID(child_id, request_id)); |
| 1708 } | 1710 } |
| 1709 | 1711 |
| 1710 } // namespace content | 1712 } // namespace content |
| OLD | NEW |