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

Unified Diff: net/url_request/url_request_context.cc

Issue 51953002: [Net] Add a priority parameter to URLRequest's constructor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile error from rebase 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
Index: net/url_request/url_request_context.cc
diff --git a/net/url_request/url_request_context.cc b/net/url_request/url_request_context.cc
index 45ac83f3752964120fa47e3a53a218707553f209..14940dbc5f36fc9576f87aa94b2fafdea17ecf7d 100644
--- a/net/url_request/url_request_context.cc
+++ b/net/url_request/url_request_context.cc
@@ -68,9 +68,11 @@ const HttpNetworkSession::Params* URLRequestContext::GetNetworkSessionParams(
return &network_session->params();
}
-URLRequest* URLRequestContext::CreateRequest(
- const GURL& url, URLRequest::Delegate* delegate) const {
- return new URLRequest(url, delegate, this, network_delegate_);
+URLRequest* URLRequestContext::CreateRequest(const GURL& url,
+ RequestPriority priority,
+ URLRequest::Delegate* delegate)
+ const {
mmenke 2013/10/30 15:27:11 nit: Const should go on same line as last argumen
akalin 2013/10/30 21:44:37 Done.
+ return new URLRequest(url, priority, delegate, this, network_delegate_);
}
void URLRequestContext::set_cookie_store(CookieStore* cookie_store) {

Powered by Google App Engine
This is Rietveld 408576698