| 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.h" | 10 #include "base/time.h" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 bool was_fetched_via_spdy; | 68 bool was_fetched_via_spdy; |
| 69 | 69 |
| 70 // True if the npn was negotiated for this request. | 70 // True if the npn was negotiated for this request. |
| 71 bool was_npn_negotiated; | 71 bool was_npn_negotiated; |
| 72 | 72 |
| 73 // True if the request was fetched via an explicit proxy. The proxy could | 73 // True if the request was fetched via an explicit proxy. The proxy could |
| 74 // be any type of proxy, HTTP or SOCKS. Note, we do not know if a | 74 // be any type of proxy, HTTP or SOCKS. Note, we do not know if a |
| 75 // transparent proxy may have been involved. | 75 // transparent proxy may have been involved. |
| 76 bool was_fetched_via_proxy; | 76 bool was_fetched_via_proxy; |
| 77 | 77 |
| 78 // Whether the request use http proxy or server authentication. |
| 79 bool did_use_http_auth; |
| 80 |
| 78 // Remote address of the socket which fetched this resource. | 81 // Remote address of the socket which fetched this resource. |
| 79 // | 82 // |
| 80 // NOTE: If the response was served from the cache (was_cached is true), | 83 // NOTE: If the response was served from the cache (was_cached is true), |
| 81 // the socket address will be set to the address that the content came from | 84 // the socket address will be set to the address that the content came from |
| 82 // originally. This is true even if the response was re-validated using a | 85 // originally. This is true even if the response was re-validated using a |
| 83 // different remote address, or if some of the content came from a byte-range | 86 // different remote address, or if some of the content came from a byte-range |
| 84 // request to a different address. | 87 // request to a different address. |
| 85 HostPortPair socket_address; | 88 HostPortPair socket_address; |
| 86 | 89 |
| 87 // Protocol negotiated with the server. | 90 // Protocol negotiated with the server. |
| (...skipping 29 matching lines...) Expand all Loading... |
| 117 // The "Vary" header data for this response. | 120 // The "Vary" header data for this response. |
| 118 HttpVaryData vary_data; | 121 HttpVaryData vary_data; |
| 119 | 122 |
| 120 // Any metadata asociated with this resource's cached data. | 123 // Any metadata asociated with this resource's cached data. |
| 121 scoped_refptr<IOBufferWithSize> metadata; | 124 scoped_refptr<IOBufferWithSize> metadata; |
| 122 }; | 125 }; |
| 123 | 126 |
| 124 } // namespace net | 127 } // namespace net |
| 125 | 128 |
| 126 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_ | 129 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_ |
| OLD | NEW |