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

Unified Diff: net/base/net_log_event_type_list.h

Issue 423813002: Sdch view for net-internals (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixing nits. Add event for ResponseCorruptionDetection Created 6 years, 2 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 823cde18bd3f1f08abd127222d8fda4e8dc174c2..474c0f817ce9495ad7804f1d33778bb9d1e6624c 100644
--- a/net/base/net_log_event_type_list.h
+++ b/net/base/net_log_event_type_list.h
@@ -2416,3 +2416,40 @@ EVENT_TYPE(SIMPLE_CACHE_ENTRY_CLOSE_END)
// This event is created (in a source of the same name) when the internal DNS
// resolver creates a UDP socket to check for global IPv6 connectivity.
EVENT_TYPE(IPV6_REACHABILITY_CHECK)
+
+// ------------------------------------------------------------------------
+// SDCH
+// ------------------------------------------------------------------------
+
+// This event is created when some problem occurs during sdch-encoded resource
+// handling. It contains the following parameters:
+// {
+// "sdch_problem_code": <SDCH problem code>,
+// "net_error": <Always ERR_FAILED, present just to indicate this is a
+// failure>,
+// }
+EVENT_TYPE(SDCH_DECODING_ERROR)
+
+// This event is created when SdchFilter initialization fails due to the
+// response corruption. It contains the following parameters:
+// {
+// "cause": <Response corruption detection cause>,
+// "cached": <True if response was read from cache>,
+// "net_error": <Always ERR_FAILED, present just to indicate this is a
+// failure>,
Randy Smith (Not in Mondays) 2014/11/03 21:01:27 I think I'd suggest leaving out the net_error/ERR_
baranovich 2014/11/03 22:34:23 Done.
+// }
+EVENT_TYPE(SDCH_RESPONSE_CORRUPTION_DETECTION)
+
+// This event is created when some problem occurs during sdch dictionary fetch.
+// It contains the following parameters:
+// {
+// "dictionary_url": <Dictionary url>,
+// "sdch_problem_code": <SDCH problem code>,
+// "net_error": <Only present on unexpected errors. Always ERR_FAILED when
+// present. Used to indicate this is a real failure>,
+// }
+EVENT_TYPE(SDCH_DICTIONARY_ERROR)
+
+// This event is created when SdchDictionaryFetcher starts fetch. It contains
+// no parameters.
+EVENT_TYPE(SDCH_DICTIONARY_FETCH)

Powered by Google App Engine
This is Rietveld 408576698