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

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

Issue 10546126: Add a link to design doc for NetLog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 | « no previous file | no next file » | 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) 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_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 10
(...skipping 15 matching lines...) Expand all
26 // NetLog is the destination for log messages generated by the network stack. 26 // NetLog is the destination for log messages generated by the network stack.
27 // Each log message has a "source" field which identifies the specific entity 27 // Each log message has a "source" field which identifies the specific entity
28 // that generated the message (for example, which URLRequest or which 28 // that generated the message (for example, which URLRequest or which
29 // SocketStream). 29 // SocketStream).
30 // 30 //
31 // To avoid needing to pass in the "source ID" to the logging functions, NetLog 31 // To avoid needing to pass in the "source ID" to the logging functions, NetLog
32 // is usually accessed through a BoundNetLog, which will always pass in a 32 // is usually accessed through a BoundNetLog, which will always pass in a
33 // specific source ID. 33 // specific source ID.
34 // 34 //
35 // All NetLog methods must be thread-safe. 35 // All NetLog methods must be thread-safe.
36 //
37 // For a broader introduction see the design document:
38 // https://sites.google.com/a/chromium.org/dev/developers/design-documents/netwo rk-stack/netlog
36 class NET_EXPORT NetLog { 39 class NET_EXPORT NetLog {
37 public: 40 public:
38 enum EventType { 41 enum EventType {
39 #define EVENT_TYPE(label) TYPE_ ## label, 42 #define EVENT_TYPE(label) TYPE_ ## label,
40 #include "net/base/net_log_event_type_list.h" 43 #include "net/base/net_log_event_type_list.h"
41 #undef EVENT_TYPE 44 #undef EVENT_TYPE
42 EVENT_COUNT 45 EVENT_COUNT
43 }; 46 };
44 47
45 // The 'phase' of an event trace (whether it marks the beginning or end 48 // The 'phase' of an event trace (whether it marks the beginning or end
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 virtual ~NetLogSourceParameter() {} 475 virtual ~NetLogSourceParameter() {}
473 476
474 private: 477 private:
475 const char* name_; 478 const char* name_;
476 const NetLog::Source value_; 479 const NetLog::Source value_;
477 }; 480 };
478 481
479 } // namespace net 482 } // namespace net
480 483
481 #endif // NET_BASE_NET_LOG_H_ 484 #endif // NET_BASE_NET_LOG_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698