OLD | NEW |
1 // Copyright (c) 2011 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 // 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 // In the event of a failure, a many end events will have a |net_error| | 8 // In the event of a failure, a many end events will have a |net_error| |
9 // parameter with the integer error code associated with the failure. Most | 9 // parameter with the integer error code associated with the failure. Most |
10 // of these parameters are not individually documented. | 10 // of these parameters are not individually documented. |
11 | 11 |
(...skipping 1186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1198 | 1198 |
1199 // ------------------------------------------------------------------------ | 1199 // ------------------------------------------------------------------------ |
1200 // DnsTransaction | 1200 // DnsTransaction |
1201 // ------------------------------------------------------------------------ | 1201 // ------------------------------------------------------------------------ |
1202 | 1202 |
1203 // The start/end of a DnsTransaction. | 1203 // The start/end of a DnsTransaction. |
1204 // | 1204 // |
1205 // The BEGIN phase contains the following parameters: | 1205 // The BEGIN phase contains the following parameters: |
1206 // | 1206 // |
1207 // { | 1207 // { |
1208 // "dns_server": <IP of the DNS server to which queries are sent>, | |
1209 // "hostname": <The hostname it is trying to resolve>, | 1208 // "hostname": <The hostname it is trying to resolve>, |
1210 // "query_type": <Type of the query>, | 1209 // "query_type": <Type of the query>, |
1211 // "source_dependency": <Source id, if any, of what created the | 1210 // "source_dependency": <Source id, if any, of what created the |
1212 // transaction>, | 1211 // transaction>, |
1213 // } | 1212 // } |
1214 // | 1213 // |
1215 // The END phase contains the following parameters: | 1214 // The END phase contains the following parameters: |
1216 // | 1215 // |
1217 // { | 1216 // { |
1218 // "ip_address_list": <The result of the resolution process, | |
1219 // an IPAddressList> | |
1220 // "net_error": <The net error code for the failure, if any>, | 1217 // "net_error": <The net error code for the failure, if any>, |
1221 // } | 1218 // } |
1222 EVENT_TYPE(DNS_TRANSACTION) | 1219 EVENT_TYPE(DNS_TRANSACTION) |
1223 | 1220 |
| 1221 // The start/end of a DnsTransaction query for a fully-qualified domain name. |
| 1222 // |
| 1223 // The BEGIN phase contains the following parameters: |
| 1224 // |
| 1225 // { |
| 1226 // "qname": <The fully-qualified domain name it is trying to resolve>, |
| 1227 // } |
| 1228 // |
| 1229 // The END phase contains the following parameters: |
| 1230 // |
| 1231 // { |
| 1232 // "net_error": <The net error code for the failure, if any>, |
| 1233 // } |
| 1234 EVENT_TYPE(DNS_TRANSACTION_QUERY) |
| 1235 |
1224 // This event is created when DnsTransaction creates a new UDP socket and | 1236 // This event is created when DnsTransaction creates a new UDP socket and |
1225 // tries to resolve the hostname. | 1237 // tries to resolve the fully-qualified name. |
1226 // | 1238 // |
1227 // It has a single parameter: | 1239 // It has a single parameter: |
1228 // | 1240 // |
1229 // { | 1241 // { |
1230 // "attempt_number": <current attempt number at resolving hostname> | 1242 // "socket_source": <Source id of the UDP socket created for the attempt>, |
1231 // "source_dependency": <Source id of the UDP socket that caused the | |
1232 // attempt>, | |
1233 // } | 1243 // } |
1234 EVENT_TYPE(DNS_TRANSACTION_ATTEMPT_STARTED) | 1244 EVENT_TYPE(DNS_TRANSACTION_ATTEMPT) |
| 1245 |
| 1246 // This event is created when DnsTransaction receives a matching response. |
| 1247 // |
| 1248 // It has the following parameters: |
| 1249 // |
| 1250 // { |
| 1251 // "rcode": <rcode in the received response>, |
| 1252 // "answer_count": <answer_count in the received response>, |
| 1253 // "socket_source": <Source id of the UDP socket that received the |
| 1254 // response>, |
| 1255 // } |
| 1256 EVENT_TYPE(DNS_TRANSACTION_RESPONSE) |
1235 | 1257 |
1236 // ------------------------------------------------------------------------ | 1258 // ------------------------------------------------------------------------ |
1237 // AsyncHostResolver | 1259 // AsyncHostResolver |
1238 // ------------------------------------------------------------------------ | 1260 // ------------------------------------------------------------------------ |
1239 | 1261 |
1240 // The start/end of waiting on a host resolve (DNS) request. | 1262 // The start/end of waiting on a host resolve (DNS) request. |
1241 // The BEGIN phase contains the following parameters: | 1263 // The BEGIN phase contains the following parameters: |
1242 // | 1264 // |
1243 // { | 1265 // { |
1244 // "source_dependency": <Source id of the request being waited on>, | 1266 // "source_dependency": <Source id of the request being waited on>, |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1378 // pipeline capability>, | 1400 // pipeline capability>, |
1379 // } | 1401 // } |
1380 EVENT_TYPE(HTTP_PIPELINED_CONNECTION_RECEIVED_HEADERS) | 1402 EVENT_TYPE(HTTP_PIPELINED_CONNECTION_RECEIVED_HEADERS) |
1381 | 1403 |
1382 // This event is created when a pipelined stream closes. | 1404 // This event is created when a pipelined stream closes. |
1383 // { | 1405 // { |
1384 // "source_dependency": <Source id of the requesting stream>, | 1406 // "source_dependency": <Source id of the requesting stream>, |
1385 // "must_close": <True if the pipeline must shut down>, | 1407 // "must_close": <True if the pipeline must shut down>, |
1386 // } | 1408 // } |
1387 EVENT_TYPE(HTTP_PIPELINED_CONNECTION_STREAM_CLOSED) | 1409 EVENT_TYPE(HTTP_PIPELINED_CONNECTION_STREAM_CLOSED) |
OLD | NEW |