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

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

Issue 2937010: Reland r52336. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 5 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
« no previous file with comments | « net/base/listen_socket_unittest.h ('k') | net/base/net_log.cc » ('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
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"
15 13
16 class Value; 14 class Value;
17 15
16 namespace base {
17 class TimeTicks;
18 }
19
18 namespace net { 20 namespace net {
19 21
20 // NetLog is the destination for log messages generated by the network stack. 22 // NetLog is the destination for log messages generated by the network stack.
21 // Each log message has a "source" field which identifies the specific entity 23 // Each log message has a "source" field which identifies the specific entity
22 // that generated the message (for example, which URLRequest or which 24 // that generated the message (for example, which URLRequest or which
23 // SocketStream). 25 // SocketStream).
24 // 26 //
25 // To avoid needing to pass in the "source id" to the logging functions, NetLog 27 // 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 28 // is usually accessed through a BoundNetLog, which will always pass in a
27 // specific source ID. 29 // specific source ID.
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 virtual Value* ToValue() const; 224 virtual Value* ToValue() const;
223 225
224 private: 226 private:
225 const char* name_; 227 const char* name_;
226 const NetLog::Source value_; 228 const NetLog::Source value_;
227 }; 229 };
228 230
229 } // namespace net 231 } // namespace net
230 232
231 #endif // NET_BASE_NET_LOG_H_ 233 #endif // NET_BASE_NET_LOG_H_
OLDNEW
« no previous file with comments | « net/base/listen_socket_unittest.h ('k') | net/base/net_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698