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

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: Fix use-after-free bug 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 6072fa9e4e96d9f6812bdce61f807a20b33d1267..6a906d2488f23ba4c40c61c5eac27d007e251605 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;
}
@@ -578,7 +580,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_,
+ priority_));
// Don't connect to restricted ports.
bool is_port_allowed = IsPortAllowedByDefault(port);

Powered by Google App Engine
This is Rietveld 408576698