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 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
950 // transferred navigation case? | 950 // transferred navigation case? |
951 | 951 |
952 request->set_load_flags(load_flags); | 952 request->set_load_flags(load_flags); |
953 | 953 |
954 request->set_priority(DetermineRequestPriority(request_data.resource_type)); | 954 request->set_priority(DetermineRequestPriority(request_data.resource_type)); |
955 | 955 |
956 // Resolve elements from request_body and prepare upload data. | 956 // Resolve elements from request_body and prepare upload data. |
957 if (request_data.request_body) { | 957 if (request_data.request_body) { |
958 request->set_upload(make_scoped_ptr( | 958 request->set_upload(make_scoped_ptr( |
959 request_data.request_body->ResolveElementsAndCreateUploadDataStream( | 959 request_data.request_body->ResolveElementsAndCreateUploadDataStream( |
960 filter_->blob_storage_context()->controller()))); | 960 filter_->blob_storage_context()->controller(), |
| 961 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE)))); |
961 } | 962 } |
962 | 963 |
963 bool allow_download = request_data.allow_download && | 964 bool allow_download = request_data.allow_download && |
964 ResourceType::IsFrame(request_data.resource_type); | 965 ResourceType::IsFrame(request_data.resource_type); |
965 | 966 |
966 // Make extra info and read footer (contains request ID). | 967 // Make extra info and read footer (contains request ID). |
967 ResourceRequestInfoImpl* extra_info = | 968 ResourceRequestInfoImpl* extra_info = |
968 new ResourceRequestInfoImpl( | 969 new ResourceRequestInfoImpl( |
969 process_type, | 970 process_type, |
970 child_id, | 971 child_id, |
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1722 | 1723 |
1723 return i->second.get(); | 1724 return i->second.get(); |
1724 } | 1725 } |
1725 | 1726 |
1726 ResourceLoader* ResourceDispatcherHostImpl::GetLoader(int child_id, | 1727 ResourceLoader* ResourceDispatcherHostImpl::GetLoader(int child_id, |
1727 int request_id) const { | 1728 int request_id) const { |
1728 return GetLoader(GlobalRequestID(child_id, request_id)); | 1729 return GetLoader(GlobalRequestID(child_id, request_id)); |
1729 } | 1730 } |
1730 | 1731 |
1731 } // namespace content | 1732 } // namespace content |
OLD | NEW |