Add an initial implementation of net-internals inspector in javascript.
BUG=37421
Review URL: http://codereview.chromium.org/1088007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42357 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/net/base/net_log.cc b/net/base/net_log.cc
index 1b1661e..6bb9297f6 100644
--- a/net/base/net_log.cc
+++ b/net/base/net_log.cc
@@ -17,6 +17,15 @@
return NULL;
}
+// static
+std::vector<NetLog::EventType> NetLog::GetAllEventTypes() {
+ std::vector<NetLog::EventType> types;
+#define EVENT_TYPE(label) types.push_back(TYPE_ ## label);
+#include "net/base/net_log_event_type_list.h"
+#undef EVENT_TYPE
+ return types;
+}
+
void BoundNetLog::AddEntry(const NetLog::Entry& entry) const {
if (net_log_)
net_log_->AddEntry(entry);