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 // 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 // -------------------------------------------------------------------------- |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 | 250 |
251 // ------------------------------------------------------------------------ | 251 // ------------------------------------------------------------------------ |
252 // URLRequest | 252 // URLRequest |
253 // ------------------------------------------------------------------------ | 253 // ------------------------------------------------------------------------ |
254 | 254 |
255 // Measures the time between URLRequest::Start() and | 255 // Measures the time between URLRequest::Start() and |
256 // URLRequest::ResponseStarted(). | 256 // URLRequest::ResponseStarted(). |
257 // | 257 // |
258 // For the BEGIN phase, the following parameters are attached: | 258 // For the BEGIN phase, the following parameters are attached: |
259 // { | 259 // { |
260 // "url": <String of URL being loaded> | 260 // "url": <String of URL being loaded>, |
| 261 // "method": <The method ("POST" or "GET" or "HEAD" etc..)>, |
| 262 // "load_flags": <Numeric value of the combined load flags> |
261 // } | 263 // } |
262 // | 264 // |
263 // For the END phase, if there was an error, the following parameters are | 265 // For the END phase, if there was an error, the following parameters are |
264 // attached: | 266 // attached: |
265 // { | 267 // { |
266 // "net_error": <Net error code of the failure> | 268 // "net_error": <Net error code of the failure> |
267 // } | 269 // } |
268 EVENT_TYPE(URL_REQUEST_START) | 270 EVENT_TYPE(URL_REQUEST_START) |
269 | 271 |
270 // This event is sent once a URLRequest receives a redirect. The parameters | 272 // This event is sent once a URLRequest receives a redirect. The parameters |
(...skipping 27 matching lines...) Expand all Loading... |
298 // ------------------------------------------------------------------------ | 300 // ------------------------------------------------------------------------ |
299 // HttpNetworkTransaction | 301 // HttpNetworkTransaction |
300 // ------------------------------------------------------------------------ | 302 // ------------------------------------------------------------------------ |
301 | 303 |
302 // Measures the time taken to send the request to the server. | 304 // Measures the time taken to send the request to the server. |
303 EVENT_TYPE(HTTP_TRANSACTION_SEND_REQUEST) | 305 EVENT_TYPE(HTTP_TRANSACTION_SEND_REQUEST) |
304 | 306 |
305 // This event is sent for a HTTP request. | 307 // This event is sent for a HTTP request. |
306 // The following parameters are attached: | 308 // The following parameters are attached: |
307 // { | 309 // { |
308 // "line": <The HTTP request line, CRLF terminated> | 310 // "line": <The HTTP request line, CRLF terminated>, |
309 // "headers": <The list of header:value pairs> | 311 // "headers": <The list of header:value pairs> |
310 // } | 312 // } |
311 EVENT_TYPE(HTTP_TRANSACTION_SEND_REQUEST_HEADERS) | 313 EVENT_TYPE(HTTP_TRANSACTION_SEND_REQUEST_HEADERS) |
312 | 314 |
313 // This event is sent for a tunnel request. | 315 // This event is sent for a tunnel request. |
314 // The following parameters are attached: | 316 // The following parameters are attached: |
315 // { | 317 // { |
316 // "line": <The HTTP request line, CRLF terminated> | 318 // "line": <The HTTP request line, CRLF terminated>, |
317 // "headers": <The list of header:value pairs> | 319 // "headers": <The list of header:value pairs> |
318 // } | 320 // } |
319 EVENT_TYPE(HTTP_TRANSACTION_SEND_TUNNEL_HEADERS) | 321 EVENT_TYPE(HTTP_TRANSACTION_SEND_TUNNEL_HEADERS) |
320 | 322 |
321 // Measures the time to read HTTP response headers from the server. | 323 // Measures the time to read HTTP response headers from the server. |
322 EVENT_TYPE(HTTP_TRANSACTION_READ_HEADERS) | 324 EVENT_TYPE(HTTP_TRANSACTION_READ_HEADERS) |
323 | 325 |
324 // This event is sent on receipt of the HTTP response headers. | 326 // This event is sent on receipt of the HTTP response headers. |
325 // The following parameters are attached: | 327 // The following parameters are attached: |
326 // { | 328 // { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 // Measures the time to read the entity body from the server. | 365 // Measures the time to read the entity body from the server. |
364 EVENT_TYPE(SPDY_TRANSACTION_READ_BODY) | 366 EVENT_TYPE(SPDY_TRANSACTION_READ_BODY) |
365 | 367 |
366 // ------------------------------------------------------------------------ | 368 // ------------------------------------------------------------------------ |
367 // SpdyStream | 369 // SpdyStream |
368 // ------------------------------------------------------------------------ | 370 // ------------------------------------------------------------------------ |
369 | 371 |
370 // This event is sent for a SPDY SYN_STREAM. | 372 // This event is sent for a SPDY SYN_STREAM. |
371 // The following parameters are attached: | 373 // The following parameters are attached: |
372 // { | 374 // { |
373 // "flags": <The control frame flags> | 375 // "flags": <The control frame flags>, |
374 // "headers": <The list of header:value pairs> | 376 // "headers": <The list of header:value pairs>, |
375 // "id": <The stream id> | 377 // "id": <The stream id> |
376 // } | 378 // } |
377 EVENT_TYPE(SPDY_STREAM_SYN_STREAM) | 379 EVENT_TYPE(SPDY_STREAM_SYN_STREAM) |
378 | 380 |
379 // Measures the time taken to send headers on a stream. | 381 // Measures the time taken to send headers on a stream. |
380 EVENT_TYPE(SPDY_STREAM_SEND_HEADERS) | 382 EVENT_TYPE(SPDY_STREAM_SEND_HEADERS) |
381 | 383 |
382 // Measures the time taken to send the body (e.g. a POST) on a stream. | 384 // Measures the time taken to send the body (e.g. a POST) on a stream. |
383 EVENT_TYPE(SPDY_STREAM_SEND_BODY) | 385 EVENT_TYPE(SPDY_STREAM_SEND_BODY) |
384 | 386 |
385 // This event is sent for a SPDY SYN_REPLY. | 387 // This event is sent for a SPDY SYN_REPLY. |
386 // The following parameters are attached: | 388 // The following parameters are attached: |
387 // { | 389 // { |
388 // "flags": <The control frame flags> | 390 // "flags": <The control frame flags>, |
389 // "headers": <The list of header:value pairs> | 391 // "headers": <The list of header:value pairs>, |
390 // "id": <The stream id> | 392 // "id": <The stream id> |
391 // } | 393 // } |
392 EVENT_TYPE(SPDY_STREAM_SYN_REPLY) | 394 EVENT_TYPE(SPDY_STREAM_SYN_REPLY) |
393 | 395 |
394 // Measures the time taken to read headers on a stream. | 396 // Measures the time taken to read headers on a stream. |
395 EVENT_TYPE(SPDY_STREAM_READ_HEADERS) | 397 EVENT_TYPE(SPDY_STREAM_READ_HEADERS) |
396 | 398 |
397 // Measures the time taken to read the body on a stream. | 399 // Measures the time taken to read the body on a stream. |
398 EVENT_TYPE(SPDY_STREAM_READ_BODY) | 400 EVENT_TYPE(SPDY_STREAM_READ_BODY) |
399 | 401 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 EVENT_TYPE(SOCKS5_GREET_WRITE) | 442 EVENT_TYPE(SOCKS5_GREET_WRITE) |
441 | 443 |
442 // The time spent waiting for the "greeting" response from the SOCKS server. | 444 // The time spent waiting for the "greeting" response from the SOCKS server. |
443 EVENT_TYPE(SOCKS5_GREET_READ) | 445 EVENT_TYPE(SOCKS5_GREET_READ) |
444 | 446 |
445 // The time spent sending the CONNECT request to the SOCKS server. | 447 // The time spent sending the CONNECT request to the SOCKS server. |
446 EVENT_TYPE(SOCKS5_HANDSHAKE_WRITE) | 448 EVENT_TYPE(SOCKS5_HANDSHAKE_WRITE) |
447 | 449 |
448 // The time spent waiting for the response to the CONNECT request. | 450 // The time spent waiting for the response to the CONNECT request. |
449 EVENT_TYPE(SOCKS5_HANDSHAKE_READ) | 451 EVENT_TYPE(SOCKS5_HANDSHAKE_READ) |
OLD | NEW |