Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef NET_BASE_NET_LOG_UTIL_H_ | |
| 6 #define NET_BASE_NET_LOG_UTIL_H_ | |
| 7 | |
| 8 #include "base/memory/scoped_ptr.h" | |
| 9 #include "net/base/net_export.h" | |
| 10 | |
| 11 namespace base { | |
| 12 class DictionaryValue; | |
| 13 class Value; | |
| 14 } | |
| 15 | |
| 16 namespace net { | |
| 17 | |
| 18 class URLRequestContext; | |
| 19 | |
| 20 enum NetInfoSource { | |
| 21 #define NET_INFO_SOURCE(label, string, value) NET_INFO_ ## label = value, | |
| 22 #include "net/base/net_info_source_list.h" | |
| 23 #undef NET_INFO_SOURCE | |
| 24 NET_INFO_ALL_SOURCES = -1, | |
| 25 }; | |
| 26 | |
| 27 // Utility methods for creating NetLog dumps. | |
| 28 | |
| 29 // Create a dictionary containing legend for net/ constants. | |
| 30 NET_EXPORT scoped_ptr<base::DictionaryValue> GetNetConstants(); | |
| 31 | |
| 32 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
| |
| 33 URLRequestContext* context, int info_sources); | |
| 34 | |
| 35 } // namespace net | |
| 36 | |
| 37 #endif // NET_BASE_NET_LOG_UTIL_H_ | |
| OLD | NEW |