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

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

Issue 1556018: Add support for attaching custom parameters to NetLog events. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Address willchan's comments Created 10 years, 8 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/net_log.cc ('k') | net/base/net_log_unittest.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 // NOTE: No header guards are used, since this file is intended to be expanded 5 // NOTE: No header guards are used, since this file is intended to be expanded
6 // directly into net_log.h. DO NOT include this file anywhere else. 6 // directly into net_log.h. DO NOT include this file anywhere else.
7 7
8 // -------------------------------------------------------------------------- 8 // --------------------------------------------------------------------------
9 // General pseudo-events 9 // General pseudo-events
10 // -------------------------------------------------------------------------- 10 // --------------------------------------------------------------------------
11 11
12 // Something got cancelled (we determine what is cancelled based on the 12 // Something got cancelled (we determine what is cancelled based on the
13 // log context around it.) 13 // log context around it.)
14 EVENT_TYPE(CANCELLED) 14 EVENT_TYPE(CANCELLED)
15 15
16 // TODO(eroman): These are placeholders used by the deprecated
17 // BoundNetLog::AddString() / BoundNetLog::AddStringLiteral().
18 EVENT_TYPE(TODO_STRING)
19 EVENT_TYPE(TODO_STRING_LITERAL)
20
16 // Marks the creation/destruction of a request (URLRequest or SocketStream). 21 // Marks the creation/destruction of a request (URLRequest or SocketStream).
17 // In the begin phase of this event, the message will contain a string which 22 // In the begin phase of this event, the message will contain a string which
18 // is the URL. 23 // is the URL.
19 EVENT_TYPE(REQUEST_ALIVE) 24 EVENT_TYPE(REQUEST_ALIVE)
20 25
21 // ------------------------------------------------------------------------ 26 // ------------------------------------------------------------------------
22 // HostResolverImpl 27 // HostResolverImpl
23 // ------------------------------------------------------------------------ 28 // ------------------------------------------------------------------------
24 29
25 // The start/end of a host resolve (DNS) request. 30 // The start/end of a host resolve (DNS) request.
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 // Identifies the NetLog::Source() for the ConnectJob that this socket ended 137 // Identifies the NetLog::Source() for the ConnectJob that this socket ended
133 // up binding to. 138 // up binding to.
134 EVENT_TYPE(SOCKET_POOL_CONNECT_JOB_ID) 139 EVENT_TYPE(SOCKET_POOL_CONNECT_JOB_ID)
135 140
136 // ------------------------------------------------------------------------ 141 // ------------------------------------------------------------------------
137 // URLRequest 142 // URLRequest
138 // ------------------------------------------------------------------------ 143 // ------------------------------------------------------------------------
139 144
140 // Measures the time between URLRequest::Start() and 145 // Measures the time between URLRequest::Start() and
141 // URLRequest::ResponseStarted(). 146 // URLRequest::ResponseStarted().
147 //
148 // For the BEGIN phase, the |extra_parameters| of the event will be of type
149 // NetLogStringParameter, and will contain the URL.
150 //
151 // For the END phase, the |extra_parameters| of the event will be of type
152 // NetLogIntegerParameter, and will contain the net error code. Altenately,
153 // the extra_parameters may be NULL indicating no error code.
142 EVENT_TYPE(URL_REQUEST_START) 154 EVENT_TYPE(URL_REQUEST_START)
143 155
144 // ------------------------------------------------------------------------ 156 // ------------------------------------------------------------------------
145 // HttpCache 157 // HttpCache
146 // ------------------------------------------------------------------------ 158 // ------------------------------------------------------------------------
147 159
148 // Measures the time while opening a disk cache entry. 160 // Measures the time while opening a disk cache entry.
149 EVENT_TYPE(HTTP_CACHE_OPEN_ENTRY) 161 EVENT_TYPE(HTTP_CACHE_OPEN_ENTRY)
150 162
151 // Measures the time while creating a disk cache entry. 163 // Measures the time while creating a disk cache entry.
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 232
221 // Measures the time to read HTTP response headers from the server. 233 // Measures the time to read HTTP response headers from the server.
222 EVENT_TYPE(HTTP_STREAM_PARSER_READ_HEADERS) 234 EVENT_TYPE(HTTP_STREAM_PARSER_READ_HEADERS)
223 235
224 // ------------------------------------------------------------------------ 236 // ------------------------------------------------------------------------
225 // SocketStream 237 // SocketStream
226 // ------------------------------------------------------------------------ 238 // ------------------------------------------------------------------------
227 239
228 // Measures the time between SocketStream::Connect() and 240 // Measures the time between SocketStream::Connect() and
229 // SocketStream::DidEstablishConnection() 241 // SocketStream::DidEstablishConnection()
242 //
243 // For the BEGIN phase, the |extra_parameters| of the event will be of type
244 // NetLogStringParameter, and will contain the URL.
245 //
246 // For the END phase, the |extra_parameters| of the event will be of type
247 // NetLogIntegerParameter, and will contain the net error code. Altenately,
248 // the extra_parameters may be NULL indicating no error code.
230 EVENT_TYPE(SOCKET_STREAM_CONNECT) 249 EVENT_TYPE(SOCKET_STREAM_CONNECT)
231 250
232 // A message sent on the SocketStream. 251 // A message sent on the SocketStream.
233 EVENT_TYPE(SOCKET_STREAM_SENT) 252 EVENT_TYPE(SOCKET_STREAM_SENT)
234 253
235 // A message received on the SocketStream. 254 // A message received on the SocketStream.
236 EVENT_TYPE(SOCKET_STREAM_RECEIVED) 255 EVENT_TYPE(SOCKET_STREAM_RECEIVED)
237 256
238 // ------------------------------------------------------------------------ 257 // ------------------------------------------------------------------------
239 // SOCKS5ClientSocket 258 // SOCKS5ClientSocket
240 // ------------------------------------------------------------------------ 259 // ------------------------------------------------------------------------
241 260
242 // The time spent sending the "greeting" to the SOCKS server. 261 // The time spent sending the "greeting" to the SOCKS server.
243 EVENT_TYPE(SOCKS5_GREET_WRITE) 262 EVENT_TYPE(SOCKS5_GREET_WRITE)
244 263
245 // The time spent waiting for the "greeting" response from the SOCKS server. 264 // The time spent waiting for the "greeting" response from the SOCKS server.
246 EVENT_TYPE(SOCKS5_GREET_READ) 265 EVENT_TYPE(SOCKS5_GREET_READ)
247 266
248 // The time spent sending the CONNECT request to the SOCKS server. 267 // The time spent sending the CONNECT request to the SOCKS server.
249 EVENT_TYPE(SOCKS5_HANDSHAKE_WRITE) 268 EVENT_TYPE(SOCKS5_HANDSHAKE_WRITE)
250 269
251 // The time spent waiting for the response to the CONNECT request. 270 // The time spent waiting for the response to the CONNECT request.
252 EVENT_TYPE(SOCKS5_HANDSHAKE_READ) 271 EVENT_TYPE(SOCKS5_HANDSHAKE_READ)
OLDNEW
« no previous file with comments | « net/base/net_log.cc ('k') | net/base/net_log_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698