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

Unified Diff: chrome/browser/net/http_pipelining_compatibility_client.cc

Issue 51953002: [Net] Add a priority parameter to URLRequest's constructor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/net/connection_tester.cc ('k') | chrome/browser/plugins/plugin_installer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/http_pipelining_compatibility_client.cc
diff --git a/chrome/browser/net/http_pipelining_compatibility_client.cc b/chrome/browser/net/http_pipelining_compatibility_client.cc
index e90fb037fcb8d2942b57c9f2e0fb85e492bb619b..75ef89d3c0d59a572a4720b1708bec915be88e46 100644
--- a/chrome/browser/net/http_pipelining_compatibility_client.cc
+++ b/chrome/browser/net/http_pipelining_compatibility_client.cc
@@ -14,6 +14,7 @@
#include "content/public/browser/browser_thread.h"
#include "net/base/load_flags.h"
#include "net/base/network_change_notifier.h"
+#include "net/base/request_priority.h"
#include "net/disk_cache/histogram_macros.h"
#include "net/http/http_network_layer.h"
#include "net/http/http_network_session.h"
@@ -89,8 +90,10 @@ Request::Request(int request_id,
net::URLRequestContext* url_request_context)
: delegate_(delegate),
request_id_(request_id),
- url_request_(url_request_context->CreateRequest(
- GURL(base_url + info.filename), this)),
+ url_request_(url_request_context->CreateRequest(GURL(base_url +
+ info.filename),
+ net::DEFAULT_PRIORITY,
+ this)),
info_(info),
response_code_(0) {
url_request_->set_load_flags(net::LOAD_BYPASS_CACHE |
« no previous file with comments | « chrome/browser/net/connection_tester.cc ('k') | chrome/browser/plugins/plugin_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698