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

Unified Diff: net/http/http_response_info.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/http/http_response_info.h
diff --git a/net/http/http_response_info.h b/net/http/http_response_info.h
index 4fbea3d4ad77cc2e12270c59a3f4349c6fc0b2c2..e13f2882e1416825881942c1ed8dc857e55cf198 100644
--- a/net/http/http_response_info.h
+++ b/net/http/http_response_info.h
@@ -7,6 +7,7 @@
#pragma once
#include "base/time.h"
+#include "net/base/host_port_pair.h"
#include "net/base/ssl_info.h"
#include "net/http/http_vary_data.h"
@@ -60,6 +61,15 @@ class HttpResponseInfo {
// transparent proxy may have been involved.
bool was_fetched_via_proxy;
+ // Remote address of the socket which fetched this resource.
+ //
+ // NOTE: If the response was served from the cache (was_cached is true),
+ // the socket address will be set to the address that the content came from
+ // originally. This is true even if the response was re-validated using a
+ // different remote address, or if some of the content came from a byte-range
+ // request to a different address.
+ HostPortPair socket_address;
+
// The time at which the request was made that resulted in this response.
// For cached responses, this is the last time the cache entry was validated.
base::Time request_time;

Powered by Google App Engine
This is Rietveld 408576698