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

Unified Diff: net/ftp/ftp_network_transaction.cc

Issue 126303: Add a "LoadLog*" parameter to transactions, hostresolver, clientsocketpool. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync again Created 11 years, 4 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/ftp/ftp_network_transaction.h ('k') | net/ftp/ftp_network_transaction_unittest.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 23124)
+++ net/ftp/ftp_network_transaction.cc (working copy)
@@ -7,6 +7,7 @@
#include "base/compiler_specific.h"
#include "base/string_util.h"
#include "net/base/connection_type_histograms.h"
+#include "net/base/load_log.h"
#include "net/base/net_errors.h"
#include "net/ftp/ftp_network_session.h"
#include "net/ftp/ftp_request_info.h"
@@ -49,8 +50,10 @@
FtpNetworkTransaction::~FtpNetworkTransaction() {
}
-int FtpNetworkTransaction::Start(const FtpRequestInfo* request_info,
+int FtpNetworkTransaction::Start(LoadLog* load_log,
+ const FtpRequestInfo* request_info,
CompletionCallback* callback) {
+ load_log_ = load_log;
request_ = request_info;
next_state_ = STATE_CTRL_INIT;
@@ -390,7 +393,7 @@
HostResolver::RequestInfo info(host, port);
// No known referrer.
- return resolver_.Resolve(info, &addresses_, &io_callback_);
+ return resolver_.Resolve(load_log_, info, &addresses_, &io_callback_);
}
int FtpNetworkTransaction::DoCtrlResolveHostComplete(int result) {
@@ -915,7 +918,7 @@
HostResolver::RequestInfo info(data_connection_ip_,
data_connection_port_);
// No known referrer.
- return resolver_.Resolve(info, &addresses_, &io_callback_);
+ return resolver_.Resolve(load_log_, info, &addresses_, &io_callback_);
}
int FtpNetworkTransaction::DoDataResolveHostComplete(int result) {
« no previous file with comments | « net/ftp/ftp_network_transaction.h ('k') | net/ftp/ftp_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698