| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "net/base/net_export.h" | 15 #include "net/base/net_export.h" |
| 16 | 16 |
| 17 namespace base { | 17 namespace base { |
| 18 class TimeTicks; |
| 18 class Value; | 19 class Value; |
| 19 } | 20 } |
| 20 | 21 |
| 21 namespace base { | |
| 22 class TimeTicks; | |
| 23 } | |
| 24 | |
| 25 namespace net { | 22 namespace net { |
| 26 | 23 |
| 27 // NetLog is the destination for log messages generated by the network stack. | 24 // NetLog is the destination for log messages generated by the network stack. |
| 28 // Each log message has a "source" field which identifies the specific entity | 25 // Each log message has a "source" field which identifies the specific entity |
| 29 // that generated the message (for example, which URLRequest or which | 26 // that generated the message (for example, which URLRequest or which |
| 30 // SocketStream). | 27 // SocketStream). |
| 31 // | 28 // |
| 32 // To avoid needing to pass in the "source id" to the logging functions, NetLog | 29 // To avoid needing to pass in the "source id" to the logging functions, NetLog |
| 33 // is usually accessed through a BoundNetLog, which will always pass in a | 30 // is usually accessed through a BoundNetLog, which will always pass in a |
| 34 // specific source ID. | 31 // specific source ID. |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 | 357 |
| 361 private: | 358 private: |
| 362 BoundNetLog net_log_; | 359 BoundNetLog net_log_; |
| 363 const NetLog::EventType event_type_; | 360 const NetLog::EventType event_type_; |
| 364 scoped_refptr<NetLog::EventParameters> end_event_params_; | 361 scoped_refptr<NetLog::EventParameters> end_event_params_; |
| 365 }; | 362 }; |
| 366 | 363 |
| 367 } // namespace net | 364 } // namespace net |
| 368 | 365 |
| 369 #endif // NET_BASE_NET_LOG_H_ | 366 #endif // NET_BASE_NET_LOG_H_ |
| OLD | NEW |