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

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

Issue 2299703003: Re-land: Only allow HTTP/0.9 support on default ports. (Closed)
Patch Set: Fix test Created 4 years, 3 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 | « net/http/http_basic_stream.cc ('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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 // If true, enable force HOL blocking. For measurement purposes. 185 // If true, enable force HOL blocking. For measurement purposes.
186 bool quic_force_hol_blocking; 186 bool quic_force_hol_blocking;
187 // If true, race cert verification with host resolution. 187 // If true, race cert verification with host resolution.
188 bool quic_race_cert_verification; 188 bool quic_race_cert_verification;
189 // If true, configure QUIC sockets to not fragment packets. 189 // If true, configure QUIC sockets to not fragment packets.
190 bool quic_do_not_fragment; 190 bool quic_do_not_fragment;
191 191
192 ProxyDelegate* proxy_delegate; 192 ProxyDelegate* proxy_delegate;
193 // Enable support for Token Binding. 193 // Enable support for Token Binding.
194 bool enable_token_binding; 194 bool enable_token_binding;
195
196 // Enable HTTP/0.9 for HTTP/HTTPS on ports other than the default one for
197 // each protocol.
198 bool http_09_on_non_default_ports_enabled;
195 }; 199 };
196 200
197 enum SocketPoolType { 201 enum SocketPoolType {
198 NORMAL_SOCKET_POOL, 202 NORMAL_SOCKET_POOL,
199 WEBSOCKET_SOCKET_POOL, 203 WEBSOCKET_SOCKET_POOL,
200 NUM_SOCKET_POOL_TYPES 204 NUM_SOCKET_POOL_TYPES
201 }; 205 };
202 206
203 explicit HttpNetworkSession(const Params& params); 207 explicit HttpNetworkSession(const Params& params);
204 ~HttpNetworkSession(); 208 ~HttpNetworkSession();
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; 311 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS];
308 312
309 Params params_; 313 Params params_;
310 314
311 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; 315 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_;
312 }; 316 };
313 317
314 } // namespace net 318 } // namespace net
315 319
316 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ 320 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_
OLDNEW
« no previous file with comments | « net/http/http_basic_stream.cc ('k') | net/http/http_network_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698