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

Unified Diff: net/log/net_log_event_type_list.h

Issue 2227503003: Add net log to UploadDataStream. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more comments Created 4 years, 4 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/log/net_log_event_type_list.h
diff --git a/net/log/net_log_event_type_list.h b/net/log/net_log_event_type_list.h
index 6a26dc65bc0654a1fe8068d30257a12b388a7720..2c8621aa690213ae8adffd133cf29daa7f334c36 100644
--- a/net/log/net_log_event_type_list.h
+++ b/net/log/net_log_event_type_list.h
@@ -3019,3 +3019,26 @@ EVENT_TYPE(SAFE_BROWSING_CHECKING_URL)
// "resumed_redirect", "unchecked_redirect">
// }
EVENT_TYPE(SAFE_BROWSING_DEFERRED)
+
+// Marks start of UploadDataStream that is logged on initialization.
+// The END phase contains the following parameters:
+// {
+// "result": <The initialization step result>,
+// "total_size": <Shows total content length>,
+// "is_chunked": <Shows whether data is chunked or not>
+// }
+EVENT_TYPE(UPLOAD_DATA_STREAM_INIT)
+
+// The start/end of UploadDataStream::Read method.
+//
+// The BEGIN phase contains the following information:
+// {
+// "current_position": <Shows current read position>,
+// }
+//
+// The END phase contains the following information:
+// {
+// "result": <Result of reading. Result > 0 is bytes read. Result == 0 means
+// the end of file. Result < 0 means an error.>
+// }
+EVENT_TYPE(UPLOAD_DATA_STREAM_READ)

Powered by Google App Engine
This is Rietveld 408576698