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/time.h" | 10 #include "base/time/time.h" |
11 #include "net/base/host_port_pair.h" | |
12 #include "net/base/net_export.h" | 11 #include "net/base/net_export.h" |
13 #include "net/http/http_vary_data.h" | 12 #include "net/http/http_vary_data.h" |
| 13 #include "net/proxy/proxy_server.h" |
14 #include "net/socket/next_proto.h" | 14 #include "net/socket/next_proto.h" |
15 #include "net/ssl/ssl_info.h" | 15 #include "net/ssl/ssl_info.h" |
16 | 16 |
17 namespace base { | 17 namespace base { |
18 class Pickle; | 18 class Pickle; |
19 } | 19 } |
20 | 20 |
21 namespace net { | 21 namespace net { |
22 | 22 |
23 class AuthChallengeInfo; | 23 class AuthChallengeInfo; |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 | 119 |
120 // True if the request was fetched over a SPDY channel. | 120 // True if the request was fetched over a SPDY channel. |
121 bool was_fetched_via_spdy; | 121 bool was_fetched_via_spdy; |
122 | 122 |
123 // True if ALPN was negotiated for this request. | 123 // True if ALPN was negotiated for this request. |
124 bool was_alpn_negotiated; | 124 bool was_alpn_negotiated; |
125 | 125 |
126 // True if the request was fetched via an explicit proxy. The proxy could | 126 // True if the request was fetched via an explicit proxy. The proxy could |
127 // be any type of proxy, HTTP or SOCKS. Note, we do not know if a | 127 // be any type of proxy, HTTP or SOCKS. Note, we do not know if a |
128 // transparent proxy may have been involved. If true, |proxy_server| contains | 128 // transparent proxy may have been involved. If true, |proxy_server| contains |
129 // the name of the proxy server that was used. | 129 // the proxy server that was used. |
| 130 // TODO(tbansal): crbug.com/653354. Remove |was_fetched_via_proxy|. |
130 bool was_fetched_via_proxy; | 131 bool was_fetched_via_proxy; |
131 HostPortPair proxy_server; | 132 ProxyServer proxy_server; |
132 | 133 |
133 // Whether the request use http proxy or server authentication. | 134 // Whether the request use http proxy or server authentication. |
134 bool did_use_http_auth; | 135 bool did_use_http_auth; |
135 | 136 |
136 // True if the resource was originally fetched for a prefetch and has not been | 137 // True if the resource was originally fetched for a prefetch and has not been |
137 // used since. | 138 // used since. |
138 bool unused_since_prefetch; | 139 bool unused_since_prefetch; |
139 | 140 |
140 // True if this resource is stale and requires async revalidation. | 141 // True if this resource is stale and requires async revalidation. |
141 // This value is not persisted by Persist(); it is only ever set when the | 142 // This value is not persisted by Persist(); it is only ever set when the |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 scoped_refptr<IOBufferWithSize> metadata; | 191 scoped_refptr<IOBufferWithSize> metadata; |
191 | 192 |
192 static ConnectionInfo ConnectionInfoFromNextProto(NextProto next_proto); | 193 static ConnectionInfo ConnectionInfoFromNextProto(NextProto next_proto); |
193 | 194 |
194 static std::string ConnectionInfoToString(ConnectionInfo connection_info); | 195 static std::string ConnectionInfoToString(ConnectionInfo connection_info); |
195 }; | 196 }; |
196 | 197 |
197 } // namespace net | 198 } // namespace net |
198 | 199 |
199 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_ | 200 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_ |
OLD | NEW |