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

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: Address eroman's comments 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 bb08a8f4866b50aabf42a7fa6cdaca24e84d1681..a2ad24b520b8a4d0d31c20ca800dc95950399c58 100644
--- a/net/url_request/url_request.h
+++ b/net/url_request/url_request.h
@@ -38,6 +38,7 @@ typedef std::vector<std::string> ResponseCookies;
namespace net {
class CookieOptions;
+class HostPortPair;
class IOBuffer;
class SSLCertRequestInfo;
class UploadData;
@@ -416,6 +417,10 @@ class URLRequest : public base::NonThreadSafe {
return response_info_.was_fetched_via_proxy;
}
+ // Returns the host and port that the content was fetched from. See
+ // http_response_info.h for caveats relating to cached content.
+ HostPortPair 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