| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_HTTP_HTTP_RESPONSE_INFO_H_ | 5 #ifndef NET_HTTP_HTTP_RESPONSE_INFO_H_ |
| 6 #define NET_HTTP_HTTP_RESPONSE_INFO_H_ | 6 #define NET_HTTP_HTTP_RESPONSE_INFO_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 // was unable to contact the server. | 113 // was unable to contact the server. |
| 114 bool server_data_unavailable; | 114 bool server_data_unavailable; |
| 115 | 115 |
| 116 // True if the request accessed the network in the process of retrieving | 116 // True if the request accessed the network in the process of retrieving |
| 117 // data. | 117 // data. |
| 118 bool network_accessed; | 118 bool network_accessed; |
| 119 | 119 |
| 120 // True if the request was fetched over a SPDY channel. | 120 // True if the request was fetched over a SPDY channel. |
| 121 bool was_fetched_via_spdy; | 121 bool was_fetched_via_spdy; |
| 122 | 122 |
| 123 // True if the npn was negotiated for this request. | 123 // True if ALPN was negotiated for this request. |
| 124 bool was_npn_negotiated; | 124 bool was_alpn_negotiated; |
| 125 | 125 |
| 126 // True if the request was fetched via an explicit proxy. The proxy could | 126 // True if the request was fetched via an explicit proxy. The proxy could |
| 127 // be any type of proxy, HTTP or SOCKS. Note, we do not know if a | 127 // be any type of proxy, HTTP or SOCKS. Note, we do not know if a |
| 128 // transparent proxy may have been involved. If true, |proxy_server| contains | 128 // transparent proxy may have been involved. If true, |proxy_server| contains |
| 129 // the name of the proxy server that was used. | 129 // the name of the proxy server that was used. |
| 130 bool was_fetched_via_proxy; | 130 bool was_fetched_via_proxy; |
| 131 HostPortPair proxy_server; | 131 HostPortPair proxy_server; |
| 132 | 132 |
| 133 // Whether the request use http proxy or server authentication. | 133 // Whether the request use http proxy or server authentication. |
| 134 bool did_use_http_auth; | 134 bool did_use_http_auth; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 145 // Remote address of the socket which fetched this resource. | 145 // Remote address of the socket which fetched this resource. |
| 146 // | 146 // |
| 147 // NOTE: If the response was served from the cache (was_cached is true), | 147 // NOTE: If the response was served from the cache (was_cached is true), |
| 148 // the socket address will be set to the address that the content came from | 148 // the socket address will be set to the address that the content came from |
| 149 // originally. This is true even if the response was re-validated using a | 149 // originally. This is true even if the response was re-validated using a |
| 150 // different remote address, or if some of the content came from a byte-range | 150 // different remote address, or if some of the content came from a byte-range |
| 151 // request to a different address. | 151 // request to a different address. |
| 152 HostPortPair socket_address; | 152 HostPortPair socket_address; |
| 153 | 153 |
| 154 // Protocol negotiated with the server. | 154 // Protocol negotiated with the server. |
| 155 std::string npn_negotiated_protocol; | 155 std::string alpn_negotiated_protocol; |
| 156 | 156 |
| 157 // The type of connection used for this response. | 157 // The type of connection used for this response. |
| 158 ConnectionInfo connection_info; | 158 ConnectionInfo connection_info; |
| 159 | 159 |
| 160 // The time at which the request was made that resulted in this response. | 160 // The time at which the request was made that resulted in this response. |
| 161 // For cached responses, this is the last time the cache entry was validated. | 161 // For cached responses, this is the last time the cache entry was validated. |
| 162 base::Time request_time; | 162 base::Time request_time; |
| 163 | 163 |
| 164 // The time at which the response headers were received. For cached | 164 // The time at which the response headers were received. For cached |
| 165 // this is the last time the cache entry was validated. | 165 // this is the last time the cache entry was validated. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 190 scoped_refptr<IOBufferWithSize> metadata; | 190 scoped_refptr<IOBufferWithSize> metadata; |
| 191 | 191 |
| 192 static ConnectionInfo ConnectionInfoFromNextProto(NextProto next_proto); | 192 static ConnectionInfo ConnectionInfoFromNextProto(NextProto next_proto); |
| 193 | 193 |
| 194 static std::string ConnectionInfoToString(ConnectionInfo connection_info); | 194 static std::string ConnectionInfoToString(ConnectionInfo connection_info); |
| 195 }; | 195 }; |
| 196 | 196 |
| 197 } // namespace net | 197 } // namespace net |
| 198 | 198 |
| 199 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_ | 199 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_ |
| OLD | NEW |