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 933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
944 route_id, | 944 route_id, |
945 request_data.origin_pid, | 945 request_data.origin_pid, |
946 request_id, | 946 request_id, |
947 request_data.is_main_frame, | 947 request_data.is_main_frame, |
948 request_data.frame_id, | 948 request_data.frame_id, |
949 request_data.parent_is_main_frame, | 949 request_data.parent_is_main_frame, |
950 request_data.parent_frame_id, | 950 request_data.parent_frame_id, |
951 request_data.resource_type, | 951 request_data.resource_type, |
952 request_data.transition_type, | 952 request_data.transition_type, |
953 false, // is download | 953 false, // is download |
| 954 false, // is stream |
954 allow_download, | 955 allow_download, |
955 request_data.has_user_gesture, | 956 request_data.has_user_gesture, |
956 request_data.referrer_policy, | 957 request_data.referrer_policy, |
957 resource_context, | 958 resource_context, |
958 !is_sync_load); | 959 !is_sync_load); |
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. |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1112 route_id, | 1113 route_id, |
1113 0, | 1114 0, |
1114 request_id_, | 1115 request_id_, |
1115 false, // is_main_frame | 1116 false, // is_main_frame |
1116 -1, // frame_id | 1117 -1, // frame_id |
1117 false, // parent_is_main_frame | 1118 false, // parent_is_main_frame |
1118 -1, // parent_frame_id | 1119 -1, // parent_frame_id |
1119 ResourceType::SUB_RESOURCE, | 1120 ResourceType::SUB_RESOURCE, |
1120 PAGE_TRANSITION_LINK, | 1121 PAGE_TRANSITION_LINK, |
1121 download, // is_download | 1122 download, // is_download |
| 1123 false, // is_stream |
1122 download, // allow_download | 1124 download, // allow_download |
1123 false, // has_user_gesture | 1125 false, // has_user_gesture |
1124 WebKit::WebReferrerPolicyDefault, | 1126 WebKit::WebReferrerPolicyDefault, |
1125 context, | 1127 context, |
1126 true); // is_async | 1128 true); // is_async |
1127 } | 1129 } |
1128 | 1130 |
1129 | 1131 |
1130 void ResourceDispatcherHostImpl::OnSwapOutACK( | 1132 void ResourceDispatcherHostImpl::OnSwapOutACK( |
1131 const ViewMsg_SwapOut_Params& params) { | 1133 const ViewMsg_SwapOut_Params& params) { |
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1697 DelegateMap::iterator it = delegate_map_.find(id); | 1699 DelegateMap::iterator it = delegate_map_.find(id); |
1698 DCHECK(it->second->HasObserver(delegate)); | 1700 DCHECK(it->second->HasObserver(delegate)); |
1699 it->second->RemoveObserver(delegate); | 1701 it->second->RemoveObserver(delegate); |
1700 if (it->second->size() == 0) { | 1702 if (it->second->size() == 0) { |
1701 delete it->second; | 1703 delete it->second; |
1702 delegate_map_.erase(it); | 1704 delegate_map_.erase(it); |
1703 } | 1705 } |
1704 } | 1706 } |
1705 | 1707 |
1706 } // namespace content | 1708 } // namespace content |
OLD | NEW |