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 |
(...skipping 16 matching lines...) Expand all Loading... |
27 // specific source ID. | 27 // specific source ID. |
28 // | 28 // |
29 // Note that NetLog is NOT THREADSAFE. | 29 // Note that NetLog is NOT THREADSAFE. |
30 // | 30 // |
31 // ******** The NetLog (and associated logging) is a work in progress ******** | 31 // ******** The NetLog (and associated logging) is a work in progress ******** |
32 // | 32 // |
33 // TODO(eroman): Remove the 'const' qualitifer from the BoundNetLog methods. | 33 // TODO(eroman): Remove the 'const' qualitifer from the BoundNetLog methods. |
34 // TODO(eroman): Make the DNS jobs emit into the NetLog. | 34 // TODO(eroman): Make the DNS jobs emit into the NetLog. |
35 // TODO(eroman): Start a new Source each time URLRequest redirects | 35 // TODO(eroman): Start a new Source each time URLRequest redirects |
36 // (simpler to reason about each as a separate entity). | 36 // (simpler to reason about each as a separate entity). |
37 // TODO(eroman): Add the URLRequest load flags to the start entry. | |
38 | 37 |
39 class NetLog { | 38 class NetLog { |
40 public: | 39 public: |
41 enum EventType { | 40 enum EventType { |
42 #define EVENT_TYPE(label) TYPE_ ## label, | 41 #define EVENT_TYPE(label) TYPE_ ## label, |
43 #include "net/base/net_log_event_type_list.h" | 42 #include "net/base/net_log_event_type_list.h" |
44 #undef EVENT_TYPE | 43 #undef EVENT_TYPE |
45 }; | 44 }; |
46 | 45 |
47 // The 'phase' of an event trace (whether it marks the beginning or end | 46 // The 'phase' of an event trace (whether it marks the beginning or end |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 virtual Value* ToValue() const; | 205 virtual Value* ToValue() const; |
207 | 206 |
208 private: | 207 private: |
209 const char* name_; | 208 const char* name_; |
210 const int value_; | 209 const int value_; |
211 }; | 210 }; |
212 | 211 |
213 } // namespace net | 212 } // namespace net |
214 | 213 |
215 #endif // NET_BASE_NET_LOG_H_ | 214 #endif // NET_BASE_NET_LOG_H_ |
OLD | NEW |