OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_LOG_NET_LOG_UTIL_H_ | 5 #ifndef NET_LOG_NET_LOG_UTIL_H_ |
6 #define NET_LOG_NET_LOG_UTIL_H_ | 6 #define NET_LOG_NET_LOG_UTIL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <set> | 9 #include <set> |
10 | 10 |
11 #include "net/base/net_export.h" | 11 #include "net/base/net_export.h" |
12 #include "net/log/net_log.h" | 12 #include "net/log/net_log.h" |
13 | 13 |
14 namespace base { | 14 namespace base { |
15 class DictionaryValue; | 15 class DictionaryValue; |
16 class Value; | |
17 } | 16 } |
18 | 17 |
19 namespace net { | 18 namespace net { |
20 | 19 |
21 class URLRequestContext; | 20 class URLRequestContext; |
22 | 21 |
23 // A set of flags that can be OR'd together to request specific information | 22 // A set of flags that can be OR'd together to request specific information |
24 // about the current state of the URLRequestContext. See GetNetInfo, below. | 23 // about the current state of the URLRequestContext. See GetNetInfo, below. |
25 enum NetInfoSource { | 24 enum NetInfoSource { |
26 #define NET_INFO_SOURCE(label, string, value) NET_INFO_##label = value, | 25 #define NET_INFO_SOURCE(label, string, value) NET_INFO_##label = value, |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // The reason for not returning a list of NetLog::Entries is that entries don't | 59 // The reason for not returning a list of NetLog::Entries is that entries don't |
61 // own most of their data, so it's simplest just to pass them in to the observer | 60 // own most of their data, so it's simplest just to pass them in to the observer |
62 // directly while their data is on the stack. | 61 // directly while their data is on the stack. |
63 NET_EXPORT void CreateNetLogEntriesForActiveObjects( | 62 NET_EXPORT void CreateNetLogEntriesForActiveObjects( |
64 const std::set<URLRequestContext*>& contexts, | 63 const std::set<URLRequestContext*>& contexts, |
65 NetLog::ThreadSafeObserver* observer); | 64 NetLog::ThreadSafeObserver* observer); |
66 | 65 |
67 } // namespace net | 66 } // namespace net |
68 | 67 |
69 #endif // NET_LOG_NET_LOG_UTIL_H_ | 68 #endif // NET_LOG_NET_LOG_UTIL_H_ |
OLD | NEW |