OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_BASE_NET_LOG_H_ | 5 #ifndef NET_BASE_NET_LOG_H_ |
6 #define NET_BASE_NET_LOG_H_ | 6 #define NET_BASE_NET_LOG_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/ref_counted.h" | 12 #include "base/ref_counted.h" |
| 13 #include "base/scoped_ptr.h" |
| 14 #include "base/time.h" |
13 | 15 |
14 class Value; | 16 class Value; |
15 | 17 |
16 namespace base { | |
17 class TimeTicks; | |
18 } | |
19 | |
20 namespace net { | 18 namespace net { |
21 | 19 |
22 // NetLog is the destination for log messages generated by the network stack. | 20 // NetLog is the destination for log messages generated by the network stack. |
23 // Each log message has a "source" field which identifies the specific entity | 21 // Each log message has a "source" field which identifies the specific entity |
24 // that generated the message (for example, which URLRequest or which | 22 // that generated the message (for example, which URLRequest or which |
25 // SocketStream). | 23 // SocketStream). |
26 // | 24 // |
27 // To avoid needing to pass in the "source id" to the logging functions, NetLog | 25 // To avoid needing to pass in the "source id" to the logging functions, NetLog |
28 // is usually accessed through a BoundNetLog, which will always pass in a | 26 // is usually accessed through a BoundNetLog, which will always pass in a |
29 // specific source ID. | 27 // specific source ID. |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 virtual Value* ToValue() const; | 222 virtual Value* ToValue() const; |
225 | 223 |
226 private: | 224 private: |
227 const char* name_; | 225 const char* name_; |
228 const NetLog::Source value_; | 226 const NetLog::Source value_; |
229 }; | 227 }; |
230 | 228 |
231 } // namespace net | 229 } // namespace net |
232 | 230 |
233 #endif // NET_BASE_NET_LOG_H_ | 231 #endif // NET_BASE_NET_LOG_H_ |
OLD | NEW |