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

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: Fix enum/int conversion problems. 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 96b3f22ecfdcb9c12f9eb36fe0c2c333346f4213..5b50d1dac36a27ce76a22a475e1c316b21f279fd 100644
--- a/chrome/browser/ui/webui/net_internals/net_internals_ui.cc
+++ b/chrome/browser/ui/webui/net_internals/net_internals_ui.cc
@@ -1929,6 +1929,36 @@ 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();
+
+ for (net::QuicErrorCode error = net::QUIC_NO_ERROR;
+ error < net::QUIC_LAST_ERROR;
+ error = static_cast<net::QuicErrorCode>(error + 1)) {
+ dict->SetInteger(net::QuicUtils::ErrorToString(error),
+ static_cast<int>(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();
+
+ for (net::QuicRstStreamErrorCode error = net::QUIC_STREAM_NO_ERROR;
+ error < net::QUIC_STREAM_LAST_ERROR;
+ error = static_cast<net::QuicRstStreamErrorCode>(error + 1)) {
+ dict->SetInteger(net::QuicUtils::StreamErrorToString(error),
+ static_cast<int>(error));
+ }
+
+ constants_dict->Set("quicRstStreamError", dict);
+ }
+
// Information about the relationship between event phase enums and their
// symbolic names.
{
« no previous file with comments | « chrome/browser/resources/net_internals/main.js ('k') | chrome/test/data/webui/net_internals/log_view_painter.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698