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

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: Adopt logging for URLReqest-based dict fetcher + cosmetics 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 f6ac5dd7188c0c8e49f0eb105baa666c92264dec..480a52f81397087997f3fc6b1a1f68b1fcffc396 100644
--- a/net/base/net_log_logger.cc
+++ b/net/base/net_log_logger.cc
@@ -128,6 +128,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));
+#include "net/base/sdch_problem_code_list.h"
+#undef SDCH_PROBLEM_CODE
+
+ 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