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

Unified Diff: chrome/browser/ui/webui/net_internals/net_internals_ui.cc

Issue 17333003: Pretty-print QUIC CONNECTION_CLOSE and RST_STREAM error codes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Wrap Created 7 years, 6 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: chrome/browser/ui/webui/net_internals/net_internals_ui.cc
diff --git a/chrome/browser/ui/webui/net_internals/net_internals_ui.cc b/chrome/browser/ui/webui/net_internals/net_internals_ui.cc
index b9501f4baffa5cfa0d6fc879be5919d7fda353d5..7c18b2c7de8a7bf402dab36a15a2e1fb17e4dbb8 100644
--- a/chrome/browser/ui/webui/net_internals/net_internals_ui.cc
+++ b/chrome/browser/ui/webui/net_internals/net_internals_ui.cc
@@ -1930,6 +1930,32 @@ Value* NetInternalsUI::GetConstants() {
constants_dict->Set("netError", dict);
}
+ // Add information on the relationship between QUIC error codes and their
+ // symbolic names.
+ {
+ DictionaryValue* dict = new DictionaryValue();
+
+#define QUIC_ERROR(error) \
+ dict->SetInteger(# error, static_cast<int>(net::QUIC_ ## error));
+#include "net/quic/quic_error_list.h"
+#undef QUIC_ERROR
+
+ constants_dict->Set("quicError", dict);
+ }
+
+ // Add information on the relationship between QUIC RST_STREAM error codes
+ // and their symbolic names.
+ {
+ DictionaryValue* dict = new DictionaryValue();
+
+#define QUIC_RST_STREAM_ERROR(error) \
+ dict->SetInteger(# error, static_cast<int>(net::QUIC_ ## error));
+#include "net/quic/quic_rst_stream_error_list.h"
+#undef QUIC_RST_STREAM_ERROR
+
+ constants_dict->Set("quicRstStreamError", dict);
+ }
+
// Information about the relationship between event phase enums and their
// symbolic names.
{

Powered by Google App Engine
This is Rietveld 408576698