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 30 matching lines...) Expand all Loading... |
41 | 41 |
42 // The following is only defined if the request_time member is set. | 42 // The following is only defined if the request_time member is set. |
43 // If this response was resurrected from cache, then this bool is set, and | 43 // If this response was resurrected from cache, then this bool is set, and |
44 // request_time may corresponds to a time "far" in the past. Note that | 44 // request_time may corresponds to a time "far" in the past. Note that |
45 // stale content (perhaps un-cacheable) may be fetched from cache subject to | 45 // stale content (perhaps un-cacheable) may be fetched from cache subject to |
46 // the load flags specified on the request info. For example, this is done | 46 // the load flags specified on the request info. For example, this is done |
47 // when a user presses the back button to re-render pages, or at startup, | 47 // when a user presses the back button to re-render pages, or at startup, |
48 // when reloading previously visited pages (without going over the network). | 48 // when reloading previously visited pages (without going over the network). |
49 bool was_cached; | 49 bool was_cached; |
50 | 50 |
| 51 // True if the request was fetched from cache rather than the network |
| 52 // because of a LOAD_FROM_CACHE_IF_OFFLINE flag when the system |
| 53 // was unable to contact the server. |
| 54 bool was_cache_override; |
| 55 |
51 // True if the request was fetched over a SPDY channel. | 56 // True if the request was fetched over a SPDY channel. |
52 bool was_fetched_via_spdy; | 57 bool was_fetched_via_spdy; |
53 | 58 |
54 // True if the npn was negotiated for this request. | 59 // True if the npn was negotiated for this request. |
55 bool was_npn_negotiated; | 60 bool was_npn_negotiated; |
56 | 61 |
57 // True if the request was fetched via an explicit proxy. The proxy could | 62 // True if the request was fetched via an explicit proxy. The proxy could |
58 // be any type of proxy, HTTP or SOCKS. Note, we do not know if a | 63 // be any type of proxy, HTTP or SOCKS. Note, we do not know if a |
59 // transparent proxy may have been involved. | 64 // transparent proxy may have been involved. |
60 bool was_fetched_via_proxy; | 65 bool was_fetched_via_proxy; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 // The "Vary" header data for this response. | 103 // The "Vary" header data for this response. |
99 HttpVaryData vary_data; | 104 HttpVaryData vary_data; |
100 | 105 |
101 // Any metadata asociated with this resource's cached data. | 106 // Any metadata asociated with this resource's cached data. |
102 scoped_refptr<IOBufferWithSize> metadata; | 107 scoped_refptr<IOBufferWithSize> metadata; |
103 }; | 108 }; |
104 | 109 |
105 } // namespace net | 110 } // namespace net |
106 | 111 |
107 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_ | 112 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_ |
OLD | NEW |