OLD | NEW |
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 // 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. |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 // This is logged for a job when a request is cancelled and detached. | 147 // This is logged for a job when a request is cancelled and detached. |
148 // | 148 // |
149 // The event contains the following parameters: | 149 // The event contains the following parameters: |
150 // | 150 // |
151 // { | 151 // { |
152 // "source_dependency": <Source identifier for the detached Request>, | 152 // "source_dependency": <Source identifier for the detached Request>, |
153 // "priority": <New priority of the job>, | 153 // "priority": <New priority of the job>, |
154 // } | 154 // } |
155 EVENT_TYPE(HOST_RESOLVER_IMPL_JOB_REQUEST_DETACH) | 155 EVENT_TYPE(HOST_RESOLVER_IMPL_JOB_REQUEST_DETACH) |
156 | 156 |
157 // Logged for a HostResolverImpl::Job when it creates a ProcTask. | |
158 // | |
159 // The event contains the following parameters: | |
160 // | |
161 // { | |
162 // "source_dependency": <Source id of parent HostResolverImpl::Job>, | |
163 // } | |
164 EVENT_TYPE(HOST_RESOLVER_IMPL_CREATE_PROC_TASK) | |
165 | |
166 // The creation/completion of a HostResolverImpl::ProcTask to call getaddrinfo. | 157 // The creation/completion of a HostResolverImpl::ProcTask to call getaddrinfo. |
167 // The BEGIN phase contains the following parameters: | 158 // The BEGIN phase contains the following parameters: |
168 // | 159 // |
169 // { | 160 // { |
170 // "hostname": <Hostname associated with the request>, | 161 // "hostname": <Hostname associated with the request>, |
171 // "source_dependency": <Source id of parent HostResolverImpl::Job>, | |
172 // } | 162 // } |
173 // | 163 // |
174 // On success, the END phase has these parameters: | 164 // On success, the END phase has these parameters: |
175 // { | 165 // { |
176 // "address_list": <The host name being resolved>, | 166 // "address_list": <The resolved addresses>, |
177 // } | 167 // } |
178 // If an error occurred, the END phase will contain these parameters: | 168 // If an error occurred, the END phase will contain these parameters: |
179 // { | 169 // { |
180 // "net_error": <The net error code integer for the failure>, | 170 // "net_error": <The net error code integer for the failure>, |
181 // "os_error": <The exact error code integer that getaddrinfo() returned>, | 171 // "os_error": <The exact error code integer that getaddrinfo() returned>, |
182 // } | 172 // } |
183 EVENT_TYPE(HOST_RESOLVER_IMPL_PROC_TASK) | 173 EVENT_TYPE(HOST_RESOLVER_IMPL_PROC_TASK) |
184 | 174 |
| 175 // The creation/completion of a HostResolverImpl::DnsTask to manage a |
| 176 // DnsTransaction. The BEGIN phase contains the following parameters: |
| 177 // |
| 178 // { |
| 179 // "source_dependency": <Source id of DnsTransaction>, |
| 180 // } |
| 181 // |
| 182 // On success, the END phase has these parameters: |
| 183 // { |
| 184 // "address_list": <The resolved addresses>, |
| 185 // } |
| 186 // If an error occurred, the END phase will contain these parameters: |
| 187 // { |
| 188 // "net_error": <The net error code integer for the failure>, |
| 189 // "dns_error": <The detailed DnsResponse::Result> |
| 190 // } |
| 191 EVENT_TYPE(HOST_RESOLVER_IMPL_DNS_TASK) |
| 192 |
185 // ------------------------------------------------------------------------ | 193 // ------------------------------------------------------------------------ |
186 // InitProxyResolver | 194 // InitProxyResolver |
187 // ------------------------------------------------------------------------ | 195 // ------------------------------------------------------------------------ |
188 | 196 |
189 // The start/end of auto-detect + custom PAC URL configuration. | 197 // The start/end of auto-detect + custom PAC URL configuration. |
190 EVENT_TYPE(PROXY_SCRIPT_DECIDER) | 198 EVENT_TYPE(PROXY_SCRIPT_DECIDER) |
191 | 199 |
192 // The start/end of when proxy autoconfig was artificially paused following | 200 // The start/end of when proxy autoconfig was artificially paused following |
193 // a network change event. (We wait some amount of time after being told of | 201 // a network change event. (We wait some amount of time after being told of |
194 // network changes to avoid hitting spurious errors during auto-detect). | 202 // network changes to avoid hitting spurious errors during auto-detect). |
(...skipping 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1248 // DnsTransaction | 1256 // DnsTransaction |
1249 // ------------------------------------------------------------------------ | 1257 // ------------------------------------------------------------------------ |
1250 | 1258 |
1251 // The start/end of a DnsTransaction. | 1259 // The start/end of a DnsTransaction. |
1252 // | 1260 // |
1253 // The BEGIN phase contains the following parameters: | 1261 // The BEGIN phase contains the following parameters: |
1254 // | 1262 // |
1255 // { | 1263 // { |
1256 // "hostname": <The hostname it is trying to resolve>, | 1264 // "hostname": <The hostname it is trying to resolve>, |
1257 // "query_type": <Type of the query>, | 1265 // "query_type": <Type of the query>, |
1258 // "source_dependency": <Source id, if any, of what created the | |
1259 // transaction>, | |
1260 // } | 1266 // } |
1261 // | 1267 // |
1262 // The END phase contains the following parameters: | 1268 // The END phase contains the following parameters: |
1263 // | 1269 // |
1264 // { | 1270 // { |
1265 // "net_error": <The net error code for the failure, if any>, | 1271 // "net_error": <The net error code for the failure, if any>, |
1266 // } | 1272 // } |
1267 EVENT_TYPE(DNS_TRANSACTION) | 1273 EVENT_TYPE(DNS_TRANSACTION) |
1268 | 1274 |
1269 // The start/end of a DnsTransaction query for a fully-qualified domain name. | 1275 // The start/end of a DnsTransaction query for a fully-qualified domain name. |
(...skipping 10 matching lines...) Expand all Loading... |
1280 // "net_error": <The net error code for the failure, if any>, | 1286 // "net_error": <The net error code for the failure, if any>, |
1281 // } | 1287 // } |
1282 EVENT_TYPE(DNS_TRANSACTION_QUERY) | 1288 EVENT_TYPE(DNS_TRANSACTION_QUERY) |
1283 | 1289 |
1284 // This event is created when DnsTransaction creates a new UDP socket and | 1290 // This event is created when DnsTransaction creates a new UDP socket and |
1285 // tries to resolve the fully-qualified name. | 1291 // tries to resolve the fully-qualified name. |
1286 // | 1292 // |
1287 // It has a single parameter: | 1293 // It has a single parameter: |
1288 // | 1294 // |
1289 // { | 1295 // { |
1290 // "socket_source": <Source id of the UDP socket created for the attempt>, | 1296 // "source_dependency": <Source id of the UDP socket created for the |
| 1297 // attempt>, |
1291 // } | 1298 // } |
1292 EVENT_TYPE(DNS_TRANSACTION_ATTEMPT) | 1299 EVENT_TYPE(DNS_TRANSACTION_ATTEMPT) |
1293 | 1300 |
1294 // This event is created when DnsTransaction receives a matching response. | 1301 // This event is created when DnsTransaction receives a matching response. |
1295 // | 1302 // |
1296 // It has the following parameters: | 1303 // It has the following parameters: |
1297 // | 1304 // |
1298 // { | 1305 // { |
1299 // "rcode": <rcode in the received response>, | 1306 // "rcode": <rcode in the received response>, |
1300 // "answer_count": <answer_count in the received response>, | 1307 // "answer_count": <answer_count in the received response>, |
1301 // "socket_source": <Source id of the UDP socket that received the | 1308 // "source_dependency": <Source id of the UDP socket that received the |
1302 // response>, | 1309 // response>, |
1303 // } | 1310 // } |
1304 EVENT_TYPE(DNS_TRANSACTION_RESPONSE) | 1311 EVENT_TYPE(DNS_TRANSACTION_RESPONSE) |
1305 | 1312 |
1306 // ------------------------------------------------------------------------ | 1313 // ------------------------------------------------------------------------ |
1307 // AsyncHostResolver | |
1308 // ------------------------------------------------------------------------ | |
1309 | |
1310 // The start/end of waiting on a host resolve (DNS) request. | |
1311 // The BEGIN phase contains the following parameters: | |
1312 // | |
1313 // { | |
1314 // "source_dependency": <Source id of the request being waited on>, | |
1315 // } | |
1316 EVENT_TYPE(ASYNC_HOST_RESOLVER) | |
1317 | |
1318 // The start/end of a host resolve (DNS) request. | |
1319 // | |
1320 // The BEGIN phase contains the following parameters: | |
1321 // | |
1322 // { | |
1323 // "hostname": <Hostname associated with the request>, | |
1324 // "address_family": <Address family of the request>, | |
1325 // "allow_cached_response": <Whether to allow cached response>, | |
1326 // "only_use_cached_response": <Use cached results only>, | |
1327 // "is_speculative": <Whether the lookup is speculative>, | |
1328 // "priority": <Priority of the request>, | |
1329 // "source_dependency": <Source id, if any, of what created the request>, | |
1330 // } | |
1331 // | |
1332 // If an error occurred, the END phase will contain this parameter: | |
1333 // { | |
1334 // "net_error": <The net error code integer for the failure>, | |
1335 // } | |
1336 EVENT_TYPE(ASYNC_HOST_RESOLVER_REQUEST) | |
1337 | |
1338 // This event is created when a new DnsTransaction is about to be created | |
1339 // for a request. | |
1340 EVENT_TYPE(ASYNC_HOST_RESOLVER_CREATE_DNS_TRANSACTION) | |
1341 | |
1342 // This event is logged when a request is handled by a cache entry. | |
1343 EVENT_TYPE(ASYNC_HOST_RESOLVER_CACHE_HIT) | |
1344 | |
1345 // ------------------------------------------------------------------------ | |
1346 // ChromeExtension | 1314 // ChromeExtension |
1347 // ------------------------------------------------------------------------ | 1315 // ------------------------------------------------------------------------ |
1348 | 1316 |
1349 // TODO(eroman): This is a layering violation. Fix this in the context | 1317 // TODO(eroman): This is a layering violation. Fix this in the context |
1350 // of http://crbug.com/90674. | 1318 // of http://crbug.com/90674. |
1351 | 1319 |
1352 // This event is created when a Chrome extension aborts a request. | 1320 // This event is created when a Chrome extension aborts a request. |
1353 // | 1321 // |
1354 // { | 1322 // { |
1355 // "extension_id": <Extension ID that caused the abortion> | 1323 // "extension_id": <Extension ID that caused the abortion> |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1635 // This may occur even when the file is not open. | 1603 // This may occur even when the file is not open. |
1636 EVENT_TYPE(FILE_STREAM_CLOSE) | 1604 EVENT_TYPE(FILE_STREAM_CLOSE) |
1637 | 1605 |
1638 // This event is created when a file stream operation has an error. | 1606 // This event is created when a file stream operation has an error. |
1639 // { | 1607 // { |
1640 // "operation": <open, write, close, etc>, | 1608 // "operation": <open, write, close, etc>, |
1641 // "os_error": <OS-dependent error code>, | 1609 // "os_error": <OS-dependent error code>, |
1642 // "net_error": <net::Error code>, | 1610 // "net_error": <net::Error code>, |
1643 // } | 1611 // } |
1644 EVENT_TYPE(FILE_STREAM_ERROR) | 1612 EVENT_TYPE(FILE_STREAM_ERROR) |
OLD | NEW |