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

Unified Diff: chrome/browser/dom_ui/net_internals_ui.cc

Issue 2115007: Annotate load flags and net errors with their symbolic name.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: address willchan's comment Created 10 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/resources/net_internals/logviewpainter.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_ui/net_internals_ui.cc
===================================================================
--- chrome/browser/dom_ui/net_internals_ui.cc (revision 47545)
+++ chrome/browser/dom_ui/net_internals_ui.cc (working copy)
@@ -498,6 +498,32 @@
CallJavascriptFunction(L"g_browser.receivedLogEventTypeConstants", dict);
}
+ // Tell the javascript about the relationship between load flag enums and
+ // their symbolic name.
+ {
+ DictionaryValue* dict = new DictionaryValue();
+
+#define LOAD_FLAG(label, value) \
+ dict->SetInteger(ASCIIToWide(# label), static_cast<int>(value));
+#include "net/base/load_flags_list.h"
+#undef LOAD_FLAG
+
+ CallJavascriptFunction(L"g_browser.receivedLoadFlagConstants", dict);
+ }
+
+ // Tell the javascript about the relationship between net error codes and
+ // their symbolic name.
+ {
+ DictionaryValue* dict = new DictionaryValue();
+
+#define NET_ERROR(label, value) \
+ dict->SetInteger(ASCIIToWide(# label), static_cast<int>(value));
+#include "net/base/net_error_list.h"
+#undef NET_ERROR
+
+ CallJavascriptFunction(L"g_browser.receivedNetErrorConstants", dict);
+ }
+
// Tell the javascript about the relationship between event phase enums and
// their symbolic name.
{
« no previous file with comments | « no previous file | chrome/browser/resources/net_internals/logviewpainter.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698