Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Side by Side Diff: net/http/http_response_info.h

Issue 2334623003: Store net::ProxyServer in HttpResponseInfo object (Closed)
Patch Set: Rebased Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 bool was_fetched_via_proxy; 130 bool was_fetched_via_proxy;
eroman 2016/10/05 01:45:12 Can you add a TODO() to remove this?
tbansal1 2016/10/06 14:35:09 Done.
131 HostPortPair proxy_server; 131 ProxyServer proxy_server;
132 132
133 // Whether the request use http proxy or server authentication. 133 // Whether the request use http proxy or server authentication.
134 bool did_use_http_auth; 134 bool did_use_http_auth;
135 135
136 // True if the resource was originally fetched for a prefetch and has not been 136 // True if the resource was originally fetched for a prefetch and has not been
137 // used since. 137 // used since.
138 bool unused_since_prefetch; 138 bool unused_since_prefetch;
139 139
140 // True if this resource is stale and requires async revalidation. 140 // 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 141 // 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
190 scoped_refptr<IOBufferWithSize> metadata; 190 scoped_refptr<IOBufferWithSize> metadata;
191 191
192 static ConnectionInfo ConnectionInfoFromNextProto(NextProto next_proto); 192 static ConnectionInfo ConnectionInfoFromNextProto(NextProto next_proto);
193 193
194 static std::string ConnectionInfoToString(ConnectionInfo connection_info); 194 static std::string ConnectionInfoToString(ConnectionInfo connection_info);
195 }; 195 };
196 196
197 } // namespace net 197 } // namespace net
198 198
199 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_ 199 #endif // NET_HTTP_HTTP_RESPONSE_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698