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 accessed the network in the process of retrieving |
| 68 // data. |
| 69 bool network_accessed; |
| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 // The "Vary" header data for this response. | 124 // The "Vary" header data for this response. |
121 HttpVaryData vary_data; | 125 HttpVaryData vary_data; |
122 | 126 |
123 // Any metadata asociated with this resource's cached data. | 127 // Any metadata asociated with this resource's cached data. |
124 scoped_refptr<IOBufferWithSize> metadata; | 128 scoped_refptr<IOBufferWithSize> metadata; |
125 }; | 129 }; |
126 | 130 |
127 } // namespace net | 131 } // namespace net |
128 | 132 |
129 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_ | 133 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_ |
OLD | NEW |