| OLD | NEW |
| 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 // If true, estimate the initial RTT for QUIC connections based on network. | 181 // If true, estimate the initial RTT for QUIC connections based on network. |
| 182 bool quic_estimate_initial_rtt; | 182 bool quic_estimate_initial_rtt; |
| 183 | 183 |
| 184 ProxyDelegate* proxy_delegate; | 184 ProxyDelegate* proxy_delegate; |
| 185 // Enable support for Token Binding. | 185 // Enable support for Token Binding. |
| 186 bool enable_token_binding; | 186 bool enable_token_binding; |
| 187 | 187 |
| 188 // Enable HTTP/0.9 for HTTP/HTTPS on ports other than the default one for | 188 // Enable HTTP/0.9 for HTTP/HTTPS on ports other than the default one for |
| 189 // each protocol. | 189 // each protocol. |
| 190 bool http_09_on_non_default_ports_enabled; | 190 bool http_09_on_non_default_ports_enabled; |
| 191 | |
| 192 // If true, only one pending preconnect is allowed to proxies that support | |
| 193 // request priorities. | |
| 194 bool restrict_to_one_preconnect_for_proxies; | |
| 195 }; | 191 }; |
| 196 | 192 |
| 197 enum SocketPoolType { | 193 enum SocketPoolType { |
| 198 NORMAL_SOCKET_POOL, | 194 NORMAL_SOCKET_POOL, |
| 199 WEBSOCKET_SOCKET_POOL, | 195 WEBSOCKET_SOCKET_POOL, |
| 200 NUM_SOCKET_POOL_TYPES | 196 NUM_SOCKET_POOL_TYPES |
| 201 }; | 197 }; |
| 202 | 198 |
| 203 explicit HttpNetworkSession(const Params& params); | 199 explicit HttpNetworkSession(const Params& params); |
| 204 ~HttpNetworkSession() override; | 200 ~HttpNetworkSession() override; |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 NextProtoVector next_protos_; | 322 NextProtoVector next_protos_; |
| 327 | 323 |
| 328 Params params_; | 324 Params params_; |
| 329 | 325 |
| 330 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; | 326 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; |
| 331 }; | 327 }; |
| 332 | 328 |
| 333 } // namespace net | 329 } // namespace net |
| 334 | 330 |
| 335 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 331 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
| OLD | NEW |