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

Unified Diff: net/http/http_stream_factory_impl_job.cc

Issue 12701011: [Net] Propagate priority changes from URLRequest to HttpTransaction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 9 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/http/http_stream_factory_impl_job.cc
diff --git a/net/http/http_stream_factory_impl_job.cc b/net/http/http_stream_factory_impl_job.cc
index 7fb8f17dfa93aea8cf81b3b1488f18d04412042e..2e1864c19ae776113dfc4d85b6b730a6aebc1436 100644
--- a/net/http/http_stream_factory_impl_job.cc
+++ b/net/http/http_stream_factory_impl_job.cc
@@ -44,10 +44,12 @@ namespace net {
// Returns parameters associated with the start of a HTTP stream job.
Value* NetLogHttpStreamJobCallback(const GURL* original_url,
const GURL* url,
+ RequestPriority priority,
NetLog::LogLevel /* log_level */) {
DictionaryValue* dict = new DictionaryValue();
dict->SetString("original_url", original_url->GetOrigin().spec());
dict->SetString("url", url->GetOrigin().spec());
+ dict->SetInteger("priority", priority);
return dict;
}
@@ -576,7 +578,8 @@ int HttpStreamFactoryImpl::Job::DoStart() {
net_log_.BeginEvent(NetLog::TYPE_HTTP_STREAM_JOB,
base::Bind(&NetLogHttpStreamJobCallback,
- &request_info_.url, &origin_url_));
+ &request_info_.url, &origin_url_,
+ request_info_.priority));
// Don't connect to restricted ports.
bool is_port_allowed = IsPortAllowedByDefault(port);

Powered by Google App Engine
This is Rietveld 408576698