diff options
author | cbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-19 15:17:36 +0000 |
---|---|---|
committer | cbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-19 15:17:36 +0000 |
commit | bd7866539aee19a2e1638efd851fb6d018f98f3e (patch) | |
tree | a7b48c34d40fb985f91d9cfa8470a9f25f18c706 | |
parent | ad2dba347d7bbc29177da53dba52d08fadd1e9e0 (diff) | |
download | chromium_src-bd7866539aee19a2e1638efd851fb6d018f98f3e.zip chromium_src-bd7866539aee19a2e1638efd851fb6d018f98f3e.tar.gz chromium_src-bd7866539aee19a2e1638efd851fb6d018f98f3e.tar.bz2 |
Added NetLog statements for Canonical name lookup.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/1629016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44910 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | net/base/net_log_event_type_list.h | 4 | ||||
-rw-r--r-- | net/http/http_network_transaction.cc | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/net/base/net_log_event_type_list.h b/net/base/net_log_event_type_list.h index 9dc8569..8d6e841 100644 --- a/net/base/net_log_event_type_list.h +++ b/net/base/net_log_event_type_list.h @@ -184,6 +184,10 @@ EVENT_TYPE(HTTP_TRANSACTION_SEND_REQUEST) // Measures the time to read HTTP response headers from the server. EVENT_TYPE(HTTP_TRANSACTION_READ_HEADERS) +// Measures the time to resolve the canonical name for HTTP Negotiate +// authentication scheme. +EVENT_TYPE(HTTP_TRANSACTION_RESOLVE_CANONICAL_NAME) + // Measures the time to read the entity body from the server. EVENT_TYPE(HTTP_TRANSACTION_READ_BODY) diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc index ef111ea..9c4d0f9 100644 --- a/net/http/http_network_transaction.cc +++ b/net/http/http_network_transaction.cc @@ -583,10 +583,14 @@ int HttpNetworkTransaction::DoLoop(int result) { net_log_.EndEvent(NetLog::TYPE_HTTP_TRANSACTION_READ_HEADERS); break; case STATE_RESOLVE_CANONICAL_NAME: + DCHECK_EQ(OK, rv); + net_log_.BeginEvent( + NetLog::TYPE_HTTP_TRANSACTION_RESOLVE_CANONICAL_NAME); rv = DoResolveCanonicalName(); break; case STATE_RESOLVE_CANONICAL_NAME_COMPLETE: rv = DoResolveCanonicalNameComplete(rv); + net_log_.EndEvent(NetLog::TYPE_HTTP_TRANSACTION_RESOLVE_CANONICAL_NAME); break; case STATE_READ_BODY: DCHECK_EQ(OK, rv); |