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

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

Issue 2595413002: Race preconnects to HTTP2 proxies that support alternate proxies
Patch Set: ps Created 3 years, 11 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_NETWORK_SESSION_H_ 5 #ifndef NET_HTTP_HTTP_NETWORK_SESSION_H_
6 #define NET_HTTP_HTTP_NETWORK_SESSION_H_ 6 #define NET_HTTP_HTTP_NETWORK_SESSION_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 // Enable support for Token Binding. 200 // Enable support for Token Binding.
201 bool enable_token_binding; 201 bool enable_token_binding;
202 202
203 // Enable HTTP/0.9 for HTTP/HTTPS on ports other than the default one for 203 // Enable HTTP/0.9 for HTTP/HTTPS on ports other than the default one for
204 // each protocol. 204 // each protocol.
205 bool http_09_on_non_default_ports_enabled; 205 bool http_09_on_non_default_ports_enabled;
206 206
207 // If true, only one pending preconnect is allowed to proxies that support 207 // If true, only one pending preconnect is allowed to proxies that support
208 // request priorities. 208 // request priorities.
209 bool restrict_to_one_preconnect_for_proxies; 209 bool restrict_to_one_preconnect_for_proxies;
210 // If true, preconnect jobs to HTTP2 proxies are raced with an alternative
211 // job if the proxy supports an alternative proxy.
212 bool race_preconnects_to_proxies;
Ryan Hamilton 2017/01/23 18:05:53 The comment says this is only for HTTP2 proxies, b
tbansal1 2017/01/23 21:48:22 Done.
Ryan Hamilton 2017/01/24 19:36:59 Hm. Seems like it should work for QUIC proxies too
210 }; 213 };
211 214
212 enum SocketPoolType { 215 enum SocketPoolType {
213 NORMAL_SOCKET_POOL, 216 NORMAL_SOCKET_POOL,
214 WEBSOCKET_SOCKET_POOL, 217 WEBSOCKET_SOCKET_POOL,
215 NUM_SOCKET_POOL_TYPES 218 NUM_SOCKET_POOL_TYPES
216 }; 219 };
217 220
218 explicit HttpNetworkSession(const Params& params); 221 explicit HttpNetworkSession(const Params& params);
219 ~HttpNetworkSession() override; 222 ~HttpNetworkSession() override;
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 NextProtoVector next_protos_; 338 NextProtoVector next_protos_;
336 339
337 Params params_; 340 Params params_;
338 341
339 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; 342 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_;
340 }; 343 };
341 344
342 } // namespace net 345 } // namespace net
343 346
344 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ 347 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698