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

Unified Diff: net/ftp/ftp_network_transaction.cc

Issue 125107: * Move the global "DnsResolutionObserver" code depended on by DNS prefetcher,... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Address jar's comments Created 11 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/tcp_pinger_unittest.cc ('k') | net/http/http_network_transaction.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ftp/ftp_network_transaction.cc
===================================================================
--- net/ftp/ftp_network_transaction.cc (revision 18360)
+++ net/ftp/ftp_network_transaction.cc (working copy)
@@ -339,13 +339,13 @@
host = request_->url.host();
port = request_->url.EffectiveIntPort();
- DidStartDnsResolution(host, this);
- return resolver_.Resolve(host, port, &addresses_, &io_callback_);
+ HostResolver::RequestInfo info(host, port);
+ // No known referrer.
+ return resolver_.Resolve(info, &addresses_, &io_callback_);
}
int FtpNetworkTransaction::DoCtrlResolveHostComplete(int result) {
bool ok = (result == OK);
- DidFinishDnsResolutionWithStatus(ok, GURL(), this);
if (ok) {
next_state_ = STATE_CTRL_CONNECT;
return result;
@@ -832,14 +832,14 @@
next_state_ = STATE_DATA_RESOLVE_HOST_COMPLETE;
- DidStartDnsResolution(data_connection_ip_, this);
- return resolver_.Resolve(data_connection_ip_, data_connection_port_,
- &addresses_, &io_callback_);
+ HostResolver::RequestInfo info(data_connection_ip_,
+ data_connection_port_);
+ // No known referrer.
+ return resolver_.Resolve(info, &addresses_, &io_callback_);
}
int FtpNetworkTransaction::DoDataResolveHostComplete(int result) {
bool ok = (result == OK);
- DidFinishDnsResolutionWithStatus(ok, GURL(), this);
if (ok) {
next_state_ = STATE_DATA_CONNECT;
return result;
« no previous file with comments | « net/base/tcp_pinger_unittest.cc ('k') | net/http/http_network_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698