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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 // The BEGIN phase contains the following parameters: | 49 // The BEGIN phase contains the following parameters: |
50 // | 50 // |
51 // { | 51 // { |
52 // "host": <Hostname associated with the request>, | 52 // "host": <Hostname associated with the request>, |
53 // "source_dependency": <Source id, if any, of what created the request>, | 53 // "source_dependency": <Source id, if any, of what created the request>, |
54 // } | 54 // } |
55 // | 55 // |
56 // If an error occurred, the END phase will contain these parameters: | 56 // If an error occurred, the END phase will contain these parameters: |
57 // { | 57 // { |
58 // "net_error": <The net error code integer for the failure>, | 58 // "net_error": <The net error code integer for the failure>, |
59 // "os_error": <The exact error code integer that getaddrinfo() returned>, | |
60 // } | 59 // } |
61 EVENT_TYPE(HOST_RESOLVER_IMPL_REQUEST) | 60 EVENT_TYPE(HOST_RESOLVER_IMPL_REQUEST) |
62 | 61 |
63 // This event is logged when a request is handled by a cache entry. | 62 // This event is logged when a request is handled by a cache entry. |
64 EVENT_TYPE(HOST_RESOLVER_IMPL_CACHE_HIT) | 63 EVENT_TYPE(HOST_RESOLVER_IMPL_CACHE_HIT) |
65 | 64 |
66 // This event is created when a new HostResolverImpl::Job is about to be created | 65 // This event is created when a new HostResolverImpl::Job is about to be created |
67 // for a request. | 66 // for a request. |
68 EVENT_TYPE(HOST_RESOLVER_IMPL_CREATE_JOB) | 67 EVENT_TYPE(HOST_RESOLVER_IMPL_CREATE_JOB) |
69 | 68 |
70 // The creation/completion of a HostResolverImpl::Job which is created for | 69 // The creation/completion of a HostResolverImpl::Job which is created for |
71 // Requests that cannot be resolved synchronously. | 70 // Requests that cannot be resolved synchronously. |
72 // | 71 // |
73 // The BEGIN phase contains the following parameters: | 72 // The BEGIN phase contains the following parameters: |
74 // | 73 // |
75 // { | 74 // { |
76 // "host": <Hostname associated with the request>, | 75 // "host": <Hostname associated with the request>, |
77 // "source_dependency": <Source id, if any, of what created the request>, | 76 // "source_dependency": <Source id, if any, of what created the request>, |
78 // } | 77 // } |
79 // | 78 // |
80 // On success, the END phase has these parameters: | 79 // On success, the END phase has these parameters: |
81 // { | 80 // { |
82 // "address_list": <The host name being resolved>, | 81 // "address_list": <The host name being resolved>, |
83 // } | 82 // } |
84 // If an error occurred, the END phase will contain these parameters: | 83 // If an error occurred, the END phase will contain these parameters: |
85 // { | 84 // { |
86 // "net_error": <The net error code integer for the failure>, | 85 // "net_error": <The net error code integer for the failure>, |
87 // "os_error": <The exact error code integer that getaddrinfo() returned>, | |
88 // } | 86 // } |
89 EVENT_TYPE(HOST_RESOLVER_IMPL_JOB) | 87 EVENT_TYPE(HOST_RESOLVER_IMPL_JOB) |
90 | 88 |
91 // This event is created when a HostResolverImpl::Job is evicted from | 89 // This event is created when a HostResolverImpl::Job is evicted from |
92 // PriorityDispatch before it can start, because the limit on number of queued | 90 // PriorityDispatch before it can start, because the limit on number of queued |
93 // Jobs was reached. | 91 // Jobs was reached. |
94 EVENT_TYPE(HOST_RESOLVER_IMPL_JOB_EVICTED) | 92 EVENT_TYPE(HOST_RESOLVER_IMPL_JOB_EVICTED) |
95 | 93 |
96 // This event is created when a HostResolverImpl::Job is started by | 94 // This event is created when a HostResolverImpl::Job is started by |
97 // PriorityDispatch. | 95 // PriorityDispatch. |
(...skipping 49 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. | 145 // This is logged for a job when a request is cancelled and detached. |
148 // | 146 // |
149 // The event contains the following parameters: | 147 // The event contains the following parameters: |
150 // | 148 // |
151 // { | 149 // { |
152 // "source_dependency": <Source identifier for the detached Request>, | 150 // "source_dependency": <Source identifier for the detached Request>, |
153 // "priority": <New priority of the job>, | 151 // "priority": <New priority of the job>, |
154 // } | 152 // } |
155 EVENT_TYPE(HOST_RESOLVER_IMPL_JOB_REQUEST_DETACH) | 153 EVENT_TYPE(HOST_RESOLVER_IMPL_JOB_REQUEST_DETACH) |
156 | 154 |
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. | 155 // The creation/completion of a HostResolverImpl::ProcTask to call getaddrinfo. |
167 // The BEGIN phase contains the following parameters: | 156 // The BEGIN phase contains the following parameters: |
168 // | 157 // |
169 // { | 158 // { |
170 // "hostname": <Hostname associated with the request>, | 159 // "hostname": <Hostname associated with the request>, |
171 // "source_dependency": <Source id of parent HostResolverImpl::Job>, | |
172 // } | 160 // } |
173 // | 161 // |
174 // On success, the END phase has these parameters: | 162 // On success, the END phase has these parameters: |
175 // { | 163 // { |
176 // "address_list": <The host name being resolved>, | 164 // "address_list": <The resolved addresses>, |
177 // } | 165 // } |
178 // If an error occurred, the END phase will contain these parameters: | 166 // If an error occurred, the END phase will contain these parameters: |
179 // { | 167 // { |
180 // "net_error": <The net error code integer for the failure>, | 168 // "net_error": <The net error code integer for the failure>, |
181 // "os_error": <The exact error code integer that getaddrinfo() returned>, | 169 // "os_error": <The exact error code integer that getaddrinfo() returned>, |
182 // } | 170 // } |
183 EVENT_TYPE(HOST_RESOLVER_IMPL_PROC_TASK) | 171 EVENT_TYPE(HOST_RESOLVER_IMPL_PROC_TASK) |
184 | 172 |
| 173 // The creation/completion of a HostResolverImpl::DnsTask to manage a |
| 174 // DnsTransaction. The BEGIN phase contains the following parameters: |
| 175 // |
| 176 // { |
| 177 // "source_dependency": <Source id of DnsTransaction>, |
| 178 // } |
| 179 // |
| 180 // On success, the END phase has these parameters: |
| 181 // { |
| 182 // "address_list": <The resolved addresses>, |
| 183 // } |
| 184 // If an error occurred, the END phase will contain these parameters: |
| 185 // { |
| 186 // "net_error": <The net error code integer for the failure>, |
| 187 // "dns_error": <The detailed DnsResponse::Result> |
| 188 // } |
| 189 EVENT_TYPE(HOST_RESOLVER_IMPL_DNS_TASK) |
| 190 |
185 // ------------------------------------------------------------------------ | 191 // ------------------------------------------------------------------------ |
186 // InitProxyResolver | 192 // InitProxyResolver |
187 // ------------------------------------------------------------------------ | 193 // ------------------------------------------------------------------------ |
188 | 194 |
189 // The start/end of auto-detect + custom PAC URL configuration. | 195 // The start/end of auto-detect + custom PAC URL configuration. |
190 EVENT_TYPE(PROXY_SCRIPT_DECIDER) | 196 EVENT_TYPE(PROXY_SCRIPT_DECIDER) |
191 | 197 |
192 // The start/end of when proxy autoconfig was artificially paused following | 198 // 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 | 199 // 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). | 200 // 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 | 1254 // DnsTransaction |
1249 // ------------------------------------------------------------------------ | 1255 // ------------------------------------------------------------------------ |
1250 | 1256 |
1251 // The start/end of a DnsTransaction. | 1257 // The start/end of a DnsTransaction. |
1252 // | 1258 // |
1253 // The BEGIN phase contains the following parameters: | 1259 // The BEGIN phase contains the following parameters: |
1254 // | 1260 // |
1255 // { | 1261 // { |
1256 // "hostname": <The hostname it is trying to resolve>, | 1262 // "hostname": <The hostname it is trying to resolve>, |
1257 // "query_type": <Type of the query>, | 1263 // "query_type": <Type of the query>, |
1258 // "source_dependency": <Source id, if any, of what created the | |
1259 // transaction>, | |
1260 // } | 1264 // } |
1261 // | 1265 // |
1262 // The END phase contains the following parameters: | 1266 // The END phase contains the following parameters: |
1263 // | 1267 // |
1264 // { | 1268 // { |
1265 // "net_error": <The net error code for the failure, if any>, | 1269 // "net_error": <The net error code for the failure, if any>, |
1266 // } | 1270 // } |
1267 EVENT_TYPE(DNS_TRANSACTION) | 1271 EVENT_TYPE(DNS_TRANSACTION) |
1268 | 1272 |
1269 // The start/end of a DnsTransaction query for a fully-qualified domain name. | 1273 // 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>, | 1284 // "net_error": <The net error code for the failure, if any>, |
1281 // } | 1285 // } |
1282 EVENT_TYPE(DNS_TRANSACTION_QUERY) | 1286 EVENT_TYPE(DNS_TRANSACTION_QUERY) |
1283 | 1287 |
1284 // This event is created when DnsTransaction creates a new UDP socket and | 1288 // This event is created when DnsTransaction creates a new UDP socket and |
1285 // tries to resolve the fully-qualified name. | 1289 // tries to resolve the fully-qualified name. |
1286 // | 1290 // |
1287 // It has a single parameter: | 1291 // It has a single parameter: |
1288 // | 1292 // |
1289 // { | 1293 // { |
1290 // "socket_source": <Source id of the UDP socket created for the attempt>, | 1294 // "source_dependency": <Source id of the UDP socket created for the |
| 1295 // attempt>, |
1291 // } | 1296 // } |
1292 EVENT_TYPE(DNS_TRANSACTION_ATTEMPT) | 1297 EVENT_TYPE(DNS_TRANSACTION_ATTEMPT) |
1293 | 1298 |
1294 // This event is created when DnsTransaction receives a matching response. | 1299 // This event is created when DnsTransaction receives a matching response. |
1295 // | 1300 // |
1296 // It has the following parameters: | 1301 // It has the following parameters: |
1297 // | 1302 // |
1298 // { | 1303 // { |
1299 // "rcode": <rcode in the received response>, | 1304 // "rcode": <rcode in the received response>, |
1300 // "answer_count": <answer_count in the received response>, | 1305 // "answer_count": <answer_count in the received response>, |
1301 // "socket_source": <Source id of the UDP socket that received the | 1306 // "source_dependency": <Source id of the UDP socket that received the |
1302 // response>, | 1307 // response>, |
1303 // } | 1308 // } |
1304 EVENT_TYPE(DNS_TRANSACTION_RESPONSE) | 1309 EVENT_TYPE(DNS_TRANSACTION_RESPONSE) |
1305 | 1310 |
1306 // ------------------------------------------------------------------------ | 1311 // ------------------------------------------------------------------------ |
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 | 1312 // ChromeExtension |
1347 // ------------------------------------------------------------------------ | 1313 // ------------------------------------------------------------------------ |
1348 | 1314 |
1349 // TODO(eroman): This is a layering violation. Fix this in the context | 1315 // TODO(eroman): This is a layering violation. Fix this in the context |
1350 // of http://crbug.com/90674. | 1316 // of http://crbug.com/90674. |
1351 | 1317 |
1352 // This event is created when a Chrome extension aborts a request. | 1318 // This event is created when a Chrome extension aborts a request. |
1353 // | 1319 // |
1354 // { | 1320 // { |
1355 // "extension_id": <Extension ID that caused the abortion> | 1321 // "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. | 1601 // This may occur even when the file is not open. |
1636 EVENT_TYPE(FILE_STREAM_CLOSE) | 1602 EVENT_TYPE(FILE_STREAM_CLOSE) |
1637 | 1603 |
1638 // This event is created when a file stream operation has an error. | 1604 // This event is created when a file stream operation has an error. |
1639 // { | 1605 // { |
1640 // "operation": <open, write, close, etc>, | 1606 // "operation": <open, write, close, etc>, |
1641 // "os_error": <OS-dependent error code>, | 1607 // "os_error": <OS-dependent error code>, |
1642 // "net_error": <net::Error code>, | 1608 // "net_error": <net::Error code>, |
1643 // } | 1609 // } |
1644 EVENT_TYPE(FILE_STREAM_ERROR) | 1610 EVENT_TYPE(FILE_STREAM_ERROR) |
OLD | NEW |