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

Unified Diff: net/base/net_log_event_type_list.h

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/base/net_log_event_type_list.h
diff --git a/net/base/net_log_event_type_list.h b/net/base/net_log_event_type_list.h
index 75291d5b2b8c7a9bf8a77f85ef9d0e252a27a044..359e7e280455aecfebf365aa4ff0aee0e3210c86 100644
--- a/net/base/net_log_event_type_list.h
+++ b/net/base/net_log_event_type_list.h
@@ -731,6 +731,14 @@ EVENT_TYPE(URL_REQUEST_BLOCKED_ON_DELEGATE)
EVENT_TYPE(URL_REQUEST_JOB_BYTES_READ)
EVENT_TYPE(URL_REQUEST_JOB_FILTERED_BYTES_READ)
+// This event is sent when the priority of a net::URLRequest is
+// changed after it has started. The parameters attached to this event
+// are:
+// {
+// "priority": <Numerical value of the priority (higher is more important)>,
+// }
+EVENT_TYPE(URL_REQUEST_SET_PRIORITY)
+
// ------------------------------------------------------------------------
// HttpCache
// ------------------------------------------------------------------------
@@ -760,6 +768,14 @@ EVENT_TYPE(HTTP_CACHE_WRITE_INFO)
EVENT_TYPE(HTTP_CACHE_READ_DATA)
EVENT_TYPE(HTTP_CACHE_WRITE_DATA)
+// This event is sent when the priority of a
+// net::HttpCache::Transaction is changed after it has started. The
+// parameters attached to this event are:
+// {
+// "priority": <Numerical value of the priority (higher is more important)>,
+// }
+EVENT_TYPE(HTTP_CACHE_SET_PRIORITY)
+
// ------------------------------------------------------------------------
// Disk Cache / Memory Cache
// ------------------------------------------------------------------------
@@ -956,6 +972,14 @@ EVENT_TYPE(HTTP_TRANSACTION_DRAIN_BODY_FOR_AUTH_RESTART)
// }
EVENT_TYPE(HTTP_TRANSACTION_RESTART_AFTER_ERROR)
+// This event is sent when the priority of a
+// net::HttpNetworkTransaction is changed after it has started. The
+// parameters attached to this event are:
+// {
+// "priority": <Numerical value of the priority (higher is more important)>,
+// }
+EVENT_TYPE(HTTP_TRANSACTION_SET_PRIORITY)
+
// ------------------------------------------------------------------------
// SpdySession
// ------------------------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698