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

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

Issue 1802893002: Revert of Remove support for Alt-Svc/Alternate Protocol Probability (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « ios/crnet/crnet_environment.mm ('k') | net/http/http_network_session.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 bool enable_http2; 94 bool enable_http2;
95 size_t spdy_session_max_recv_window_size; 95 size_t spdy_session_max_recv_window_size;
96 size_t spdy_stream_max_recv_window_size; 96 size_t spdy_stream_max_recv_window_size;
97 // Source of time for SPDY connections. 97 // Source of time for SPDY connections.
98 SpdySessionPool::TimeFunc time_func; 98 SpdySessionPool::TimeFunc time_func;
99 // Whether to parse Alt-Svc headers. 99 // Whether to parse Alt-Svc headers.
100 bool parse_alternative_services; 100 bool parse_alternative_services;
101 // Whether to enable Alt-Svc entries with hostname different than that of 101 // Whether to enable Alt-Svc entries with hostname different than that of
102 // the origin. 102 // the origin.
103 bool enable_alternative_service_with_different_host; 103 bool enable_alternative_service_with_different_host;
104 // Only honor alternative service entries which have a higher probability
105 // than this value.
106 double alternative_service_probability_threshold;
104 107
105 // Enables NPN support. Note that ALPN is always enabled. 108 // Enables NPN support. Note that ALPN is always enabled.
106 bool enable_npn; 109 bool enable_npn;
107 110
108 // Enables Brotli Content-Encoding support. 111 // Enables Brotli Content-Encoding support.
109 bool enable_brotli; 112 bool enable_brotli;
110 113
111 // Enables QUIC support. 114 // Enables QUIC support.
112 bool enable_quic; 115 bool enable_quic;
113 // Disable QUIC if a connection times out with open streams. 116 // Disable QUIC if a connection times out with open streams.
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 295
293 NextProtoVector next_protos_; 296 NextProtoVector next_protos_;
294 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; 297 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS];
295 298
296 Params params_; 299 Params params_;
297 }; 300 };
298 301
299 } // namespace net 302 } // namespace net
300 303
301 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ 304 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_
OLDNEW
« no previous file with comments | « ios/crnet/crnet_environment.mm ('k') | net/http/http_network_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698