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/child/resource_dispatcher.h" | 7 #include "content/child/resource_dispatcher.h" |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 request_.request_context = request_info.request_context; | 125 request_.request_context = request_info.request_context; |
126 request_.appcache_host_id = request_info.appcache_host_id; | 126 request_.appcache_host_id = request_info.appcache_host_id; |
127 request_.download_to_file = request_info.download_to_file; | 127 request_.download_to_file = request_info.download_to_file; |
128 request_.has_user_gesture = request_info.has_user_gesture; | 128 request_.has_user_gesture = request_info.has_user_gesture; |
129 request_.skip_service_worker = request_info.skip_service_worker; | 129 request_.skip_service_worker = request_info.skip_service_worker; |
130 request_.fetch_request_mode = request_info.fetch_request_mode; | 130 request_.fetch_request_mode = request_info.fetch_request_mode; |
131 request_.fetch_credentials_mode = request_info.fetch_credentials_mode; | 131 request_.fetch_credentials_mode = request_info.fetch_credentials_mode; |
132 request_.fetch_request_context_type = request_info.fetch_request_context_type; | 132 request_.fetch_request_context_type = request_info.fetch_request_context_type; |
133 request_.fetch_frame_type = request_info.fetch_frame_type; | 133 request_.fetch_frame_type = request_info.fetch_frame_type; |
134 request_.enable_load_timing = request_info.enable_load_timing; | 134 request_.enable_load_timing = request_info.enable_load_timing; |
| 135 request_.enable_upload_progress = request_info.enable_upload_progress; |
135 | 136 |
136 const RequestExtraData kEmptyData; | 137 const RequestExtraData kEmptyData; |
137 const RequestExtraData* extra_data; | 138 const RequestExtraData* extra_data; |
138 if (request_info.extra_data) | 139 if (request_info.extra_data) |
139 extra_data = static_cast<RequestExtraData*>(request_info.extra_data); | 140 extra_data = static_cast<RequestExtraData*>(request_info.extra_data); |
140 else | 141 else |
141 extra_data = &kEmptyData; | 142 extra_data = &kEmptyData; |
142 request_.visiblity_state = extra_data->visibility_state(); | 143 request_.visiblity_state = extra_data->visibility_state(); |
143 request_.render_frame_id = extra_data->render_frame_id(); | 144 request_.render_frame_id = extra_data->render_frame_id(); |
144 request_.is_main_frame = extra_data->is_main_frame(); | 145 request_.is_main_frame = extra_data->is_main_frame(); |
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
885 void ResourceDispatcher::ReleaseResourcesInMessageQueue(MessageQueue* queue) { | 886 void ResourceDispatcher::ReleaseResourcesInMessageQueue(MessageQueue* queue) { |
886 while (!queue->empty()) { | 887 while (!queue->empty()) { |
887 IPC::Message* message = queue->front(); | 888 IPC::Message* message = queue->front(); |
888 ReleaseResourcesInDataMessage(*message); | 889 ReleaseResourcesInDataMessage(*message); |
889 queue->pop_front(); | 890 queue->pop_front(); |
890 delete message; | 891 delete message; |
891 } | 892 } |
892 } | 893 } |
893 | 894 |
894 } // namespace content | 895 } // namespace content |
OLD | NEW |