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

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

Issue 9190031: DnsClient refactoring + features (timeout, suffix search, server rotation). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added comments. Fixed tests. Created 8 years, 11 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 | « no previous file | net/dns/async_host_resolver.h » ('j') | net/dns/async_host_resolver.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 1187 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 id of the UDP socket created for the attempt>,
mmenke 2012/01/13 16:44:37 nit: Think "socket_source" is a little clearer.
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 id of the UDP socket that received the response>,
mmenke 2012/01/13 16:44:37 nit: Think "socket_source" is a little clearer.
1254 // }
1255 EVENT_TYPE(DNS_TRANSACTION_RESPONSE)
1235 1256
1236 // ------------------------------------------------------------------------ 1257 // ------------------------------------------------------------------------
1237 // AsyncHostResolver 1258 // AsyncHostResolver
1238 // ------------------------------------------------------------------------ 1259 // ------------------------------------------------------------------------
1239 1260
1240 // The start/end of waiting on a host resolve (DNS) request. 1261 // The start/end of waiting on a host resolve (DNS) request.
1241 // The BEGIN phase contains the following parameters: 1262 // The BEGIN phase contains the following parameters:
1242 // 1263 //
1243 // { 1264 // {
1244 // "source_dependency": <Source id of the request being waited on>, 1265 // "source_dependency": <Source id of the request being waited on>,
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
1378 // pipeline capability>, 1399 // pipeline capability>,
1379 // } 1400 // }
1380 EVENT_TYPE(HTTP_PIPELINED_CONNECTION_RECEIVED_HEADERS) 1401 EVENT_TYPE(HTTP_PIPELINED_CONNECTION_RECEIVED_HEADERS)
1381 1402
1382 // This event is created when a pipelined stream closes. 1403 // This event is created when a pipelined stream closes.
1383 // { 1404 // {
1384 // "source_dependency": <Source id of the requesting stream>, 1405 // "source_dependency": <Source id of the requesting stream>,
1385 // "must_close": <True if the pipeline must shut down>, 1406 // "must_close": <True if the pipeline must shut down>,
1386 // } 1407 // }
1387 EVENT_TYPE(HTTP_PIPELINED_CONNECTION_STREAM_CLOSED) 1408 EVENT_TYPE(HTTP_PIPELINED_CONNECTION_STREAM_CLOSED)
OLDNEW
« no previous file with comments | « no previous file | net/dns/async_host_resolver.h » ('j') | net/dns/async_host_resolver.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698