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

Unified Diff: net/base/net_log_event_type_list.h

Issue 7084007: Adds URLRequestJob bytes read to NetLog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync Created 9 years, 7 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
===================================================================
--- net/base/net_log_event_type_list.h (revision 87467)
+++ net/base/net_log_event_type_list.h (working copy)
@@ -541,6 +541,17 @@
// respond to the onBefoteRequest extension event.
EVENT_TYPE(URL_REQUEST_BLOCKED_ON_EXTENSION)
+// The specified number of bytes were read from the net::URLRequest.
+// The filtered event is used when the bytes were passed through a filter before
+// being read. This event is only present when byte logging is enabled.
+// The following parameters are attached:
+// {
+// "byte_count": <Number of bytes that were just sent>,
+// "hex_encoded_bytes": <The exact bytes sent, as a hexadecimal string>,
+// }
+EVENT_TYPE(URL_REQUEST_JOB_BYTES_READ)
+EVENT_TYPE(URL_REQUEST_JOB_FILTERED_BYTES_READ)
+
// ------------------------------------------------------------------------
// HttpCache
// ------------------------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698