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

Unified Diff: net/log/net_log_source_type.h

Issue 2315613002: Extracted NetLog class's inner enum types into their own enum classes and (Closed)
Patch Set: Ran "git cl format" on code. Much formatting ensued. Created 4 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
« no previous file with comments | « net/log/net_log_event_type_list.h ('k') | net/log/net_log_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/log/net_log_source_type.h
diff --git a/net/log/net_log_source_type.h b/net/log/net_log_source_type.h
new file mode 100644
index 0000000000000000000000000000000000000000..8fe57e5416d32001dbcfe58b24cd9ceb798ea2ad
--- /dev/null
+++ b/net/log/net_log_source_type.h
@@ -0,0 +1,20 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NET_LOG_NET_LOG_SOURCE_TYPE_H_
+#define NET_LOG_NET_LOG_SOURCE_TYPE_H_
+
+namespace net {
+
+// The "source" identifies the entity that generated the log message.
+enum class NetLogSourceType {
+#define SOURCE_TYPE(label) label,
+#include "net/log/net_log_source_type_list.h"
+#undef SOURCE_TYPE
+ COUNT
+};
+
+} // namespace net
+
+#endif // NET_LOG_NET_LOG_SOURCE_TYPE_H_
« no previous file with comments | « net/log/net_log_event_type_list.h ('k') | net/log/net_log_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698