Chromium Code Reviews| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 146 // a row after which QUIC will be disabled. | 146 // a row after which QUIC will be disabled. |
| 147 int quic_max_number_of_lossy_connections; | 147 int quic_max_number_of_lossy_connections; |
| 148 // Specifies packet loss rate in fraction after which a connection is | 148 // Specifies packet loss rate in fraction after which a connection is |
| 149 // closed and is considered as a lossy connection. | 149 // closed and is considered as a lossy connection. |
| 150 float quic_packet_loss_threshold; | 150 float quic_packet_loss_threshold; |
| 151 // Size in bytes of the QUIC DUP socket receive buffer. | 151 // Size in bytes of the QUIC DUP socket receive buffer. |
| 152 int quic_socket_receive_buffer_size; | 152 int quic_socket_receive_buffer_size; |
| 153 // Delay starting a TCP connection when QUIC believes it can speak | 153 // Delay starting a TCP connection when QUIC believes it can speak |
| 154 // 0-RTT to a server. | 154 // 0-RTT to a server. |
| 155 bool quic_delay_tcp_race; | 155 bool quic_delay_tcp_race; |
| 156 // Store server configs in HttpServerProperties, instead of the disk cache. | 156 // Number of server configs that are to be stored in HttpServerProperties, |
| 157 bool quic_store_server_configs_in_properties; | 157 // instead of the disk cache. |
| 158 int quic_number_of_server_configs_stored_in_properties; | |
|
Ryan Hamilton
2016/01/12 19:54:56
nit: s/number_of/max/
ramant (doing other things)
2016/01/14 00:14:01
Done.
| |
| 158 // If not empty, QUIC will be used for all connections to this origin. | 159 // If not empty, QUIC will be used for all connections to this origin. |
| 159 HostPortPair origin_to_force_quic_on; | 160 HostPortPair origin_to_force_quic_on; |
| 160 // Source of time for QUIC connections. Will be owned by QuicStreamFactory. | 161 // Source of time for QUIC connections. Will be owned by QuicStreamFactory. |
| 161 QuicClock* quic_clock; | 162 QuicClock* quic_clock; |
| 162 // Source of entropy for QUIC connections. | 163 // Source of entropy for QUIC connections. |
| 163 QuicRandom* quic_random; | 164 QuicRandom* quic_random; |
| 164 // Limit on the size of QUIC packets. | 165 // Limit on the size of QUIC packets. |
| 165 size_t quic_max_packet_length; | 166 size_t quic_max_packet_length; |
| 166 // User agent description to send in the QUIC handshake. | 167 // User agent description to send in the QUIC handshake. |
| 167 std::string quic_user_agent_id; | 168 std::string quic_user_agent_id; |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 293 | 294 |
| 294 NextProtoVector next_protos_; | 295 NextProtoVector next_protos_; |
| 295 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; | 296 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; |
| 296 | 297 |
| 297 Params params_; | 298 Params params_; |
| 298 }; | 299 }; |
| 299 | 300 |
| 300 } // namespace net | 301 } // namespace net |
| 301 | 302 |
| 302 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 303 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
| OLD | NEW |