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

Unified Diff: net/base/net_log_util.h

Issue 679103004: Add function to get network stack state from a URLRequestContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix badProxies Created 6 years, 2 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: net/base/net_log_util.h
diff --git a/net/base/net_log_util.h b/net/base/net_log_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..ae8fff81e0dd0a91bf45f8e3f02b59c76ebd9c1a
--- /dev/null
+++ b/net/base/net_log_util.h
@@ -0,0 +1,37 @@
+// Copyright 2014 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_BASE_NET_LOG_UTIL_H_
+#define NET_BASE_NET_LOG_UTIL_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "net/base/net_export.h"
+
+namespace base {
+class DictionaryValue;
+class Value;
+}
+
+namespace net {
+
+class URLRequestContext;
+
+enum NetInfoSource {
+#define NET_INFO_SOURCE(label, string, value) NET_INFO_ ## label = value,
+#include "net/base/net_info_source_list.h"
+#undef NET_INFO_SOURCE
+ NET_INFO_ALL_SOURCES = -1,
+};
+
+// Utility methods for creating NetLog dumps.
+
+// Create a dictionary containing legend for net/ constants.
+NET_EXPORT scoped_ptr<base::DictionaryValue> GetNetConstants();
+
+NET_EXPORT scoped_ptr<base::DictionaryValue> GetNetInfo(
eroman 2014/10/28 21:59:41 Documentation: Please give more details on the typ
mmenke 2014/10/29 15:44:55 Done. I deliberately haven't gone into much detai
+ URLRequestContext* context, int info_sources);
+
+} // namespace net
+
+#endif // NET_BASE_NET_LOG_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698