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 #include "net/http/http_network_session.h" | 5 #include "net/http/http_network_session.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/atomic_sequence_num.h" | 9 #include "base/atomic_sequence_num.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 quic_idle_connection_timeout_seconds(kIdleConnectionTimeoutSeconds), | 124 quic_idle_connection_timeout_seconds(kIdleConnectionTimeoutSeconds), |
125 quic_packet_reader_yield_after_duration_milliseconds( | 125 quic_packet_reader_yield_after_duration_milliseconds( |
126 kQuicYieldAfterDurationMilliseconds), | 126 kQuicYieldAfterDurationMilliseconds), |
127 quic_disable_preconnect_if_0rtt(false), | 127 quic_disable_preconnect_if_0rtt(false), |
128 quic_migrate_sessions_on_network_change(false), | 128 quic_migrate_sessions_on_network_change(false), |
129 quic_migrate_sessions_early(false), | 129 quic_migrate_sessions_early(false), |
130 quic_allow_server_migration(false), | 130 quic_allow_server_migration(false), |
131 quic_disable_bidirectional_streams(false), | 131 quic_disable_bidirectional_streams(false), |
132 quic_force_hol_blocking(false), | 132 quic_force_hol_blocking(false), |
133 quic_race_cert_verification(false), | 133 quic_race_cert_verification(false), |
| 134 quic_do_not_fragment(false), |
134 proxy_delegate(NULL), | 135 proxy_delegate(NULL), |
135 enable_token_binding(false) { | 136 enable_token_binding(false) { |
136 quic_supported_versions.push_back(QUIC_VERSION_35); | 137 quic_supported_versions.push_back(QUIC_VERSION_35); |
137 } | 138 } |
138 | 139 |
139 HttpNetworkSession::Params::Params(const Params& other) = default; | 140 HttpNetworkSession::Params::Params(const Params& other) = default; |
140 | 141 |
141 HttpNetworkSession::Params::~Params() {} | 142 HttpNetworkSession::Params::~Params() {} |
142 | 143 |
143 // TODO(mbelshe): Move the socket factories into HttpStreamFactory. | 144 // TODO(mbelshe): Move the socket factories into HttpStreamFactory. |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 params.quic_max_server_configs_stored_in_properties, | 187 params.quic_max_server_configs_stored_in_properties, |
187 params.quic_close_sessions_on_ip_change, | 188 params.quic_close_sessions_on_ip_change, |
188 params.disable_quic_on_timeout_with_open_streams, | 189 params.disable_quic_on_timeout_with_open_streams, |
189 params.quic_idle_connection_timeout_seconds, | 190 params.quic_idle_connection_timeout_seconds, |
190 params.quic_packet_reader_yield_after_duration_milliseconds, | 191 params.quic_packet_reader_yield_after_duration_milliseconds, |
191 params.quic_migrate_sessions_on_network_change, | 192 params.quic_migrate_sessions_on_network_change, |
192 params.quic_migrate_sessions_early, | 193 params.quic_migrate_sessions_early, |
193 params.quic_allow_server_migration, | 194 params.quic_allow_server_migration, |
194 params.quic_force_hol_blocking, | 195 params.quic_force_hol_blocking, |
195 params.quic_race_cert_verification, | 196 params.quic_race_cert_verification, |
| 197 params.quic_do_not_fragment, |
196 params.quic_connection_options, | 198 params.quic_connection_options, |
197 params.enable_token_binding), | 199 params.enable_token_binding), |
198 spdy_session_pool_(params.host_resolver, | 200 spdy_session_pool_(params.host_resolver, |
199 params.ssl_config_service, | 201 params.ssl_config_service, |
200 params.http_server_properties, | 202 params.http_server_properties, |
201 params.transport_security_state, | 203 params.transport_security_state, |
202 params.enable_spdy_ping_based_connection_checking, | 204 params.enable_spdy_ping_based_connection_checking, |
203 params.spdy_session_max_recv_window_size, | 205 params.spdy_session_max_recv_window_size, |
204 params.spdy_stream_max_recv_window_size, | 206 params.spdy_stream_max_recv_window_size, |
205 params.time_func, | 207 params.time_func, |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 case base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_NONE: | 417 case base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_NONE: |
416 break; | 418 break; |
417 case base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_MODERATE: | 419 case base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_MODERATE: |
418 case base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_CRITICAL: | 420 case base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_CRITICAL: |
419 CloseIdleConnections(); | 421 CloseIdleConnections(); |
420 break; | 422 break; |
421 } | 423 } |
422 } | 424 } |
423 | 425 |
424 } // namespace net | 426 } // namespace net |
OLD | NEW |