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

Unified Diff: net/url_request/url_request_ftp_job.cc

Issue 6488010: Propagate the remote socket address to URLRequest and to ViewHostMsg_FrameNavigate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: propagate GetPeerAddressErrors, and sync Created 9 years, 10 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
Index: net/url_request/url_request_ftp_job.cc
diff --git a/net/url_request/url_request_ftp_job.cc b/net/url_request/url_request_ftp_job.cc
index 8c170ff3580002108259d1972363e18fb2e50c1d..25ff697eb4fd838c474501d691fa75a1acd9c8e1 100644
--- a/net/url_request/url_request_ftp_job.cc
+++ b/net/url_request/url_request_ftp_job.cc
@@ -52,6 +52,14 @@ bool URLRequestFtpJob::GetMimeType(std::string* mime_type) const {
return false;
}
+std::string URLRequestFtpJob::GetSocketAddress() const {
+ if (!transaction_.get()) {
+ return "";
+ }
+
+ return transaction_->GetResponseInfo()->socket_address;
+}
+
URLRequestFtpJob::~URLRequestFtpJob() {
}

Powered by Google App Engine
This is Rietveld 408576698