summaryrefslogtreecommitdiffstats
path: root/net/http
diff options
context:
space:
mode:
authorwtc@google.com <wtc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-24 19:11:10 +0000
committerwtc@google.com <wtc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-24 19:11:10 +0000
commit8947da6c7cd943bcb4be80a258e263a84aa15006 (patch)
tree92f630932954b4e395d91a56ae0d9973f6b5aff0 /net/http
parentba3d54f0c867fb3ed038d36520ef22d62e82862a (diff)
downloadchromium_src-8947da6c7cd943bcb4be80a258e263a84aa15006.zip
chromium_src-8947da6c7cd943bcb4be80a258e263a84aa15006.tar.gz
chromium_src-8947da6c7cd943bcb4be80a258e263a84aa15006.tar.bz2
Call DidStartDnsResolution and DidFinishDnsResolutionWithStatus
in the new HTTP stack. R=jar Review URL: http://codereview.chromium.org/8155 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3933 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http')
-rw-r--r--net/http/http_network_transaction.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/net/http/http_network_transaction.cc b/net/http/http_network_transaction.cc
index 12e72e0..5ef592a 100644
--- a/net/http/http_network_transaction.cc
+++ b/net/http/http_network_transaction.cc
@@ -10,6 +10,7 @@
#include "base/trace_event.h"
#include "build/build_config.h"
#include "net/base/client_socket_factory.h"
+#include "net/base/dns_resolution_observer.h"
#include "net/base/host_resolver.h"
#include "net/base/load_flags.h"
#include "net/base/net_util.h"
@@ -452,11 +453,14 @@ int HttpNetworkTransaction::DoResolveHost() {
port = request_->url.EffectiveIntPort();
}
+ DidStartDnsResolution(host, this);
return resolver_.Resolve(host, port, &addresses_, &io_callback_);
}
int HttpNetworkTransaction::DoResolveHostComplete(int result) {
- if (result == OK) {
+ bool ok = (result == OK);
+ DidFinishDnsResolutionWithStatus(ok, this);
+ if (ok) {
next_state_ = STATE_CONNECT;
} else {
result = ReconsiderProxyAfterError(result);