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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 // True if the request was fetched via an explicit proxy. The proxy could | 88 // True if the request was fetched via an explicit proxy. The proxy could |
89 // be any type of proxy, HTTP or SOCKS. Note, we do not know if a | 89 // be any type of proxy, HTTP or SOCKS. Note, we do not know if a |
90 // transparent proxy may have been involved. If true, |proxy_server| contains | 90 // transparent proxy may have been involved. If true, |proxy_server| contains |
91 // the name of the proxy server that was used. | 91 // the name of the proxy server that was used. |
92 bool was_fetched_via_proxy; | 92 bool was_fetched_via_proxy; |
93 HostPortPair proxy_server; | 93 HostPortPair proxy_server; |
94 | 94 |
95 // Whether the request use http proxy or server authentication. | 95 // Whether the request use http proxy or server authentication. |
96 bool did_use_http_auth; | 96 bool did_use_http_auth; |
97 | 97 |
| 98 // True if the resource was originally fetched for a prefetch and has not been |
| 99 // used since. |
| 100 bool unused_since_prefetch; |
| 101 |
98 // Remote address of the socket which fetched this resource. | 102 // Remote address of the socket which fetched this resource. |
99 // | 103 // |
100 // NOTE: If the response was served from the cache (was_cached is true), | 104 // NOTE: If the response was served from the cache (was_cached is true), |
101 // the socket address will be set to the address that the content came from | 105 // the socket address will be set to the address that the content came from |
102 // originally. This is true even if the response was re-validated using a | 106 // originally. This is true even if the response was re-validated using a |
103 // different remote address, or if some of the content came from a byte-range | 107 // different remote address, or if some of the content came from a byte-range |
104 // request to a different address. | 108 // request to a different address. |
105 HostPortPair socket_address; | 109 HostPortPair socket_address; |
106 | 110 |
107 // Protocol negotiated with the server. | 111 // Protocol negotiated with the server. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 scoped_refptr<IOBufferWithSize> metadata; | 145 scoped_refptr<IOBufferWithSize> metadata; |
142 | 146 |
143 static ConnectionInfo ConnectionInfoFromNextProto(NextProto next_proto); | 147 static ConnectionInfo ConnectionInfoFromNextProto(NextProto next_proto); |
144 | 148 |
145 static std::string ConnectionInfoToString(ConnectionInfo connection_info); | 149 static std::string ConnectionInfoToString(ConnectionInfo connection_info); |
146 }; | 150 }; |
147 | 151 |
148 } // namespace net | 152 } // namespace net |
149 | 153 |
150 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_ | 154 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_ |
OLD | NEW |