Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Side by Side Diff: content/browser/loader/resource_dispatcher_host_impl.cc

Issue 11778016: net: Stop using base::WorkerPool from UploadFileElementReader (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix CF Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/web_request/web_request_api_unittest.cc ('k') | net/base/upload_data_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698