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

Unified Diff: net/base/net_log_util.h

Issue 683113005: Update from chromium https://crrev.com/302282 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
« no previous file with comments | « net/base/net_log_logger_unittest.cc ('k') | net/base/net_log_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..d9627da416e0161e93c8707bb068181f0742ccbb
--- /dev/null
+++ b/net/base/net_log_util.h
@@ -0,0 +1,43 @@
+// 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;
+
+// A set of flags that can be OR'd together to request specific information
+// about the current state of the URLRequestContext. See GetNetInfo, below.
+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();
+
+// Retrieves a dictionary containing information about the current state of
+// |context|. |info_sources| is a set of NetInfoSources OR'd together,
+// indicating just what information is being requested. Each NetInfoSource adds
+// one top-level entry to the returned dictionary.
+NET_EXPORT scoped_ptr<base::DictionaryValue> GetNetInfo(
+ URLRequestContext* context, int info_sources);
+
+} // namespace net
+
+#endif // NET_BASE_NET_LOG_UTIL_H_
« no previous file with comments | « net/base/net_log_logger_unittest.cc ('k') | net/base/net_log_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698