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

Unified Diff: net/url_request/url_request.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: 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.cc
diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc
index c2d0f4f6d6c6b85e69f9041f969dfcabf0bb6ef2..a684ad20bd08bb730cd01a6b16e2bf5af0f85d50 100644
--- a/net/url_request/url_request.cc
+++ b/net/url_request/url_request.cc
@@ -258,6 +258,11 @@ void URLRequest::GetAllResponseHeaders(string* headers) {
}
}
+std::string URLRequest::GetSocketAddress() const {
+ DCHECK(job_);
+ return job_->GetSocketAddress();
+}
+
net::HttpResponseHeaders* URLRequest::response_headers() const {
return response_info_.headers.get();
}

Powered by Google App Engine
This is Rietveld 408576698