Chromium Code Reviews| 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..7086af244a131604b2f17a60d3b7dc88d20c0f7e 100644 |
| --- a/net/http/http_response_info.h |
| +++ b/net/http/http_response_info.h |
| @@ -6,6 +6,8 @@ |
| #define NET_HTTP_HTTP_RESPONSE_INFO_H_ |
| #pragma once |
| +#include <string> |
| + |
| #include "base/time.h" |
| #include "net/base/ssl_info.h" |
| #include "net/http/http_vary_data.h" |
| @@ -60,6 +62,16 @@ class HttpResponseInfo { |
| // transparent proxy may have been involved. |
| bool was_fetched_via_proxy; |
| + // Remote address of the socket which fetched this resource. |
| + // Can be "ipv4:port", "[ipv6]:port", or empty. |
| + // |
| + // 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. |
| + std::string socket_address; |
|
eroman
2011/02/16 21:41:13
Please use a HostPortPair instead, and avoid descr
|
| + |
| // 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; |