OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/time.h" | 9 #include "base/time.h" |
10 #include "net/base/host_port_pair.h" | 10 #include "net/base/host_port_pair.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 // when a user presses the back button to re-render pages, or at startup, | 45 // when a user presses the back button to re-render pages, or at startup, |
46 // when reloading previously visited pages (without going over the network). | 46 // when reloading previously visited pages (without going over the network). |
47 bool was_cached; | 47 bool was_cached; |
48 | 48 |
49 // True if the request was fetched over a SPDY channel. | 49 // True if the request was fetched over a SPDY channel. |
50 bool was_fetched_via_spdy; | 50 bool was_fetched_via_spdy; |
51 | 51 |
52 // True if the npn was negotiated for this request. | 52 // True if the npn was negotiated for this request. |
53 bool was_npn_negotiated; | 53 bool was_npn_negotiated; |
54 | 54 |
55 // True if response could use alternate protocol. However, browser | |
56 // will ingore the alternate protocol if spdy is not enabled. | |
57 bool was_alternate_protocol_available; | |
58 | |
59 // True if the request was fetched via an explicit proxy. The proxy could | 55 // True if the request was fetched via an explicit proxy. The proxy could |
60 // be any type of proxy, HTTP or SOCKS. Note, we do not know if a | 56 // be any type of proxy, HTTP or SOCKS. Note, we do not know if a |
61 // transparent proxy may have been involved. | 57 // transparent proxy may have been involved. |
62 bool was_fetched_via_proxy; | 58 bool was_fetched_via_proxy; |
63 | 59 |
64 // Remote address of the socket which fetched this resource. | 60 // Remote address of the socket which fetched this resource. |
65 // | 61 // |
66 // NOTE: If the response was served from the cache (was_cached is true), | 62 // NOTE: If the response was served from the cache (was_cached is true), |
67 // the socket address will be set to the address that the content came from | 63 // the socket address will be set to the address that the content came from |
68 // originally. This is true even if the response was re-validated using a | 64 // originally. This is true even if the response was re-validated using a |
(...skipping 28 matching lines...) Expand all Loading... |
97 // The "Vary" header data for this response. | 93 // The "Vary" header data for this response. |
98 HttpVaryData vary_data; | 94 HttpVaryData vary_data; |
99 | 95 |
100 // Any metadata asociated with this resource's cached data. | 96 // Any metadata asociated with this resource's cached data. |
101 scoped_refptr<IOBufferWithSize> metadata; | 97 scoped_refptr<IOBufferWithSize> metadata; |
102 }; | 98 }; |
103 | 99 |
104 } // namespace net | 100 } // namespace net |
105 | 101 |
106 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_ | 102 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_ |
OLD | NEW |