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

Unified Diff: net/base/net_log_logger.cc

Issue 423813002: Sdch view for net-internals (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review fixes. Lots. Created 6 years, 3 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_logger.cc
diff --git a/net/base/net_log_logger.cc b/net/base/net_log_logger.cc
index b69a70be317c5efff0bdf177ebb2a2976a1ebe4b..1ba34d3e88636b1c198688ec7918c225a9c1e8fd 100644
--- a/net/base/net_log_logger.cc
+++ b/net/base/net_log_logger.cc
@@ -154,6 +154,19 @@ base::DictionaryValue* NetLogLogger::GetConstants() {
constants_dict->Set("netError", dict);
}
+ // Add information on the relationship between SDCH problem codes and their
+ // symbolic names.
+ {
+ base::DictionaryValue* dict = new base::DictionaryValue();
+
+#define SDCH_PROBLEM_CODE(label, value) \
+ dict->SetInteger(#label, static_cast<int>(value));
mmenke 2014/10/03 18:59:27 nit: +2 indent.
baranovich 2014/10/27 20:49:24 Done.
+#include "net/base/sdch_problem_code_list.h"
+#undef SDCH_PROBLEM_CODE
mmenke 2014/10/03 18:59:27 The code in this file has been refactored to reduc
baranovich 2014/10/27 20:49:24 Done.
+
+ constants_dict->Set("sdchProblemCode", dict);
+ }
+
// Add information on the relationship between QUIC error codes and their
// symbolic names.
{

Powered by Google App Engine
This is Rietveld 408576698