Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(271)

Side by Side Diff: net/base/net_log.h

Issue 2008007: Replace about:net-internals with the javascript-based frontend.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: improve a comment Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/base/host_resolver_impl.cc ('k') | net/base/net_log_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 13 matching lines...) Expand all
24 // 24 //
25 // 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
26 // 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
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): Remove NetLogUtil. Pretty printing should only be done from 34 // TODO(eroman): Make the DNS jobs emit into the NetLog.
35 // javascript, and should be very context-aware.
36 // TODO(eroman): Make the DNS jobs emit directly into the NetLog.
37 // TODO(eroman): Start a new Source each time URLRequest redirects 35 // TODO(eroman): Start a new Source each time URLRequest redirects
38 // (simpler to reason about each as a separate entity). 36 // (simpler to reason about each as a separate entity).
39 // TODO(eroman): Add the URLRequest load flags to the start entry. 37 // TODO(eroman): Add the URLRequest load flags to the start entry.
40 38
41 class NetLog { 39 class NetLog {
42 public: 40 public:
43 enum EventType { 41 enum EventType {
44 #define EVENT_TYPE(label) TYPE_ ## label, 42 #define EVENT_TYPE(label) TYPE_ ## label,
45 #include "net/base/net_log_event_type_list.h" 43 #include "net/base/net_log_event_type_list.h"
46 #undef EVENT_TYPE 44 #undef EVENT_TYPE
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 virtual Value* ToValue() const; 208 virtual Value* ToValue() const;
211 209
212 private: 210 private:
213 const char* name_; 211 const char* name_;
214 const int value_; 212 const int value_;
215 }; 213 };
216 214
217 } // namespace net 215 } // namespace net
218 216
219 #endif // NET_BASE_NET_LOG_H_ 217 #endif // NET_BASE_NET_LOG_H_
OLDNEW
« no previous file with comments | « net/base/host_resolver_impl.cc ('k') | net/base/net_log_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698