OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_H_ | 5 #ifndef NET_LOG_NET_LOG_H_ |
6 #define NET_LOG_NET_LOG_H_ | 6 #define NET_LOG_NET_LOG_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/atomicops.h" | 12 #include "base/atomicops.h" |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
16 #include "base/strings/string16.h" | 16 #include "base/strings/string16.h" |
17 #include "base/synchronization/lock.h" | 17 #include "base/synchronization/lock.h" |
18 #include "base/time/time.h" | 18 #include "base/time/time.h" |
19 #include "build/build_config.h" | 19 #include "build/build_config.h" |
20 #include "net/base/net_export.h" | 20 #include "net/base/net_export.h" |
21 #include "net/log/net_log_capture_mode.h" | 21 #include "net/log/net_log_capture_mode.h" |
22 #include "net/log/net_log_entry.h" | 22 #include "net/log/net_log_entry.h" |
23 #include "net/log/net_log_event_type.h" | 23 #include "net/log/net_log_event_type.h" |
24 #include "net/log/net_log_parameters_callback.h" | 24 #include "net/log/net_log_parameters_callback.h" |
25 #include "net/log/net_log_source.h" | 25 #include "net/log/net_log_source.h" |
26 #include "net/log/net_log_source_type.h" | 26 #include "net/log/net_log_source_type.h" |
27 | 27 |
28 namespace base { | 28 namespace base { |
29 class DictionaryValue; | |
30 class Value; | 29 class Value; |
31 } | 30 } |
32 | 31 |
33 namespace net { | 32 namespace net { |
34 | 33 |
35 // NetLog is the destination for log messages generated by the network stack. | 34 // NetLog is the destination for log messages generated by the network stack. |
36 // Each log message has a "source" field which identifies the specific entity | 35 // Each log message has a "source" field which identifies the specific entity |
37 // that generated the message (for example, which URLRequest or which | 36 // that generated the message (for example, which URLRequest or which |
38 // SpdySession). | 37 // SpdySession). |
39 // | 38 // |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 | 220 |
222 // |lock_| must be acquired whenever reading or writing to this. | 221 // |lock_| must be acquired whenever reading or writing to this. |
223 base::ObserverList<ThreadSafeObserver, true> observers_; | 222 base::ObserverList<ThreadSafeObserver, true> observers_; |
224 | 223 |
225 DISALLOW_COPY_AND_ASSIGN(NetLog); | 224 DISALLOW_COPY_AND_ASSIGN(NetLog); |
226 }; | 225 }; |
227 | 226 |
228 } // namespace net | 227 } // namespace net |
229 | 228 |
230 #endif // NET_LOG_NET_LOG_H_ | 229 #endif // NET_LOG_NET_LOG_H_ |
OLD | NEW |