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

Side by Side Diff: content/child/web_url_loader_impl.cc

Issue 669073003: Get rid of net::LOAD_ENABLE_UPLOAD_PROGRESS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // An implementation of WebURLLoader in terms of ResourceLoaderBridge. 5 // An implementation of WebURLLoader in terms of ResourceLoaderBridge.
6 6
7 #include "content/child/web_url_loader_impl.h" 7 #include "content/child/web_url_loader_impl.h"
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 438
439 RequestInfo request_info; 439 RequestInfo request_info;
440 request_info.method = method; 440 request_info.method = method;
441 request_info.url = url; 441 request_info.url = url;
442 request_info.first_party_for_cookies = request.firstPartyForCookies(); 442 request_info.first_party_for_cookies = request.firstPartyForCookies();
443 request_info.referrer = referrer_url; 443 request_info.referrer = referrer_url;
444 request_info.headers = GetWebURLRequestHeaders(request); 444 request_info.headers = GetWebURLRequestHeaders(request);
445 ; 445 ;
446 request_info.load_flags = GetLoadFlagsForWebURLRequest(request); 446 request_info.load_flags = GetLoadFlagsForWebURLRequest(request);
447 request_info.enable_load_timing = true; 447 request_info.enable_load_timing = true;
448 if (request.reportUploadProgress())
449 request_info.enable_upload_progress = true;
mmenke 2014/10/22 18:23:37 nit: request_info.enable_upload_progress = reques
448 // requestor_pid only needs to be non-zero if the request originates outside 450 // requestor_pid only needs to be non-zero if the request originates outside
449 // the render process, so we can use requestorProcessID even for requests 451 // the render process, so we can use requestorProcessID even for requests
450 // from in-process plugins. 452 // from in-process plugins.
451 request_info.requestor_pid = request.requestorProcessID(); 453 request_info.requestor_pid = request.requestorProcessID();
452 request_info.request_type = WebURLRequestToResourceType(request); 454 request_info.request_type = WebURLRequestToResourceType(request);
453 request_info.priority = 455 request_info.priority =
454 ConvertWebKitPriorityToNetPriority(request.priority()); 456 ConvertWebKitPriorityToNetPriority(request.priority());
455 request_info.appcache_host_id = request.appCacheHostID(); 457 request_info.appcache_host_id = request.appCacheHostID();
456 request_info.routing_id = request.requestorID(); 458 request_info.routing_id = request.requestorID();
457 request_info.download_to_file = request.downloadToFile(); 459 request_info.download_to_file = request.downloadToFile();
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
981 int intra_priority_value) { 983 int intra_priority_value) {
982 context_->DidChangePriority(new_priority, intra_priority_value); 984 context_->DidChangePriority(new_priority, intra_priority_value);
983 } 985 }
984 986
985 bool WebURLLoaderImpl::attachThreadedDataReceiver( 987 bool WebURLLoaderImpl::attachThreadedDataReceiver(
986 blink::WebThreadedDataReceiver* threaded_data_receiver) { 988 blink::WebThreadedDataReceiver* threaded_data_receiver) {
987 return context_->AttachThreadedDataReceiver(threaded_data_receiver); 989 return context_->AttachThreadedDataReceiver(threaded_data_receiver);
988 } 990 }
989 991
990 } // namespace content 992 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698