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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
57 // the load flags specified on the request info. For example, this is done | 57 // the load flags specified on the request info. For example, this is done |
58 // when a user presses the back button to re-render pages, or at startup, | 58 // when a user presses the back button to re-render pages, or at startup, |
59 // when reloading previously visited pages (without going over the network). | 59 // when reloading previously visited pages (without going over the network). |
60 bool was_cached; | 60 bool was_cached; |
61 | 61 |
62 // True if the request was fetched from cache rather than the network | 62 // True if the request was fetched from cache rather than the network |
63 // because of a LOAD_FROM_CACHE_IF_OFFLINE flag when the system | 63 // because of a LOAD_FROM_CACHE_IF_OFFLINE flag when the system |
64 // was unable to contact the server. | 64 // was unable to contact the server. |
65 bool server_data_unavailable; | 65 bool server_data_unavailable; |
66 | 66 |
67 // True if the request was verified from the network, either by | |
68 // direct load or by confirming the current cached copy is good. | |
69 bool network_verified; | |
rvargas (doing something else)
2013/04/03 21:48:19
We have two options:
1. Have a signal about networ
Randy Smith (Not in Mondays)
2013/04/04 19:42:49
Done, but just confirming: Do we actually use the
rvargas (doing something else)
2013/04/04 20:13:12
The field has to be updated on HttpCache::Transact
| |
70 | |
67 // True if the request was fetched over a SPDY channel. | 71 // True if the request was fetched over a SPDY channel. |
68 bool was_fetched_via_spdy; | 72 bool was_fetched_via_spdy; |
69 | 73 |
70 // True if the npn was negotiated for this request. | 74 // True if the npn was negotiated for this request. |
71 bool was_npn_negotiated; | 75 bool was_npn_negotiated; |
72 | 76 |
73 // True if the request was fetched via an explicit proxy. The proxy could | 77 // 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 | 78 // be any type of proxy, HTTP or SOCKS. Note, we do not know if a |
75 // transparent proxy may have been involved. | 79 // transparent proxy may have been involved. |
76 bool was_fetched_via_proxy; | 80 bool was_fetched_via_proxy; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
117 // The "Vary" header data for this response. | 121 // The "Vary" header data for this response. |
118 HttpVaryData vary_data; | 122 HttpVaryData vary_data; |
119 | 123 |
120 // Any metadata asociated with this resource's cached data. | 124 // Any metadata asociated with this resource's cached data. |
121 scoped_refptr<IOBufferWithSize> metadata; | 125 scoped_refptr<IOBufferWithSize> metadata; |
122 }; | 126 }; |
123 | 127 |
124 } // namespace net | 128 } // namespace net |
125 | 129 |
126 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_ | 130 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_ |
OLD | NEW |