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

Unified Diff: net/url_request/url_request.h

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.h
diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h
index 3f399a658831a9933b418e31e956e75e6a4f65b0..08e1fed2f60be78d53cd80de7175b40e46072b46 100644
--- a/net/url_request/url_request.h
+++ b/net/url_request/url_request.h
@@ -416,6 +416,11 @@ class URLRequest : public base::NonThreadSafe {
return response_info_.was_fetched_via_proxy;
}
+ // Returns the IP:port that the content was fetched from, or empty if
+ // this is not available. See http_response_info.h for caveats relating
+ // to cached content.
+ std::string GetSocketAddress() const;
+
// Get all response headers, as a HttpResponseHeaders object. See comments
// in HttpResponseHeaders class as to the format of the data.
net::HttpResponseHeaders* response_headers() const;

Powered by Google App Engine
This is Rietveld 408576698