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 | 7 |
8 #include "base/time.h" | 8 #include "base/time.h" |
9 #include "net/base/auth.h" | 9 #include "net/base/auth.h" |
10 #include "net/base/io_buffer.h" | 10 #include "net/base/io_buffer.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 // when a user presses the back button to re-render pages, or at startup, | 31 // when a user presses the back button to re-render pages, or at startup, |
32 // when reloading previously visited pages (without going over the network). | 32 // when reloading previously visited pages (without going over the network). |
33 bool was_cached; | 33 bool was_cached; |
34 | 34 |
35 // True if the request was fetched over a SPDY channel. | 35 // True if the request was fetched over a SPDY channel. |
36 bool was_fetched_via_spdy; | 36 bool was_fetched_via_spdy; |
37 | 37 |
38 // True if the npn was negotiated for this request. | 38 // True if the npn was negotiated for this request. |
39 bool was_npn_negotiated; | 39 bool was_npn_negotiated; |
40 | 40 |
| 41 // True if response could use alternate protocol. However, browser |
| 42 // will ingore the alternate protocol if spdy is not enabled. |
| 43 bool was_alternate_protocol_available; |
| 44 |
41 // True if the request was fetched via an explicit proxy. The proxy could | 45 // True if the request was fetched via an explicit proxy. The proxy could |
42 // be any type of proxy, HTTP or SOCKS. Note, we do not know if a | 46 // be any type of proxy, HTTP or SOCKS. Note, we do not know if a |
43 // transparent proxy may have been involved. | 47 // transparent proxy may have been involved. |
44 bool was_fetched_via_proxy; | 48 bool was_fetched_via_proxy; |
45 | 49 |
46 // The time at which the request was made that resulted in this response. | 50 // The time at which the request was made that resulted in this response. |
47 // For cached responses, this is the last time the cache entry was validated. | 51 // For cached responses, this is the last time the cache entry was validated. |
48 base::Time request_time; | 52 base::Time request_time; |
49 | 53 |
50 // The time at which the response headers were received. For cached | 54 // The time at which the response headers were received. For cached |
(...skipping 27 matching lines...) Expand all Loading... |
78 | 82 |
79 // Call this method to persist the response info. | 83 // Call this method to persist the response info. |
80 void Persist(Pickle* pickle, | 84 void Persist(Pickle* pickle, |
81 bool skip_transient_headers, | 85 bool skip_transient_headers, |
82 bool response_truncated) const; | 86 bool response_truncated) const; |
83 }; | 87 }; |
84 | 88 |
85 } // namespace net | 89 } // namespace net |
86 | 90 |
87 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_ | 91 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_ |
OLD | NEW |