| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 quic_do_not_fragment(false), |
| 135 proxy_delegate(NULL), | 135 proxy_delegate(NULL), |
| 136 enable_token_binding(false), | 136 enable_token_binding(false) { |
| 137 http_09_on_non_default_ports_enabled(false) { | |
| 138 quic_supported_versions.push_back(QUIC_VERSION_35); | 137 quic_supported_versions.push_back(QUIC_VERSION_35); |
| 139 } | 138 } |
| 140 | 139 |
| 141 HttpNetworkSession::Params::Params(const Params& other) = default; | 140 HttpNetworkSession::Params::Params(const Params& other) = default; |
| 142 | 141 |
| 143 HttpNetworkSession::Params::~Params() {} | 142 HttpNetworkSession::Params::~Params() {} |
| 144 | 143 |
| 145 // TODO(mbelshe): Move the socket factories into HttpStreamFactory. | 144 // TODO(mbelshe): Move the socket factories into HttpStreamFactory. |
| 146 HttpNetworkSession::HttpNetworkSession(const Params& params) | 145 HttpNetworkSession::HttpNetworkSession(const Params& params) |
| 147 : net_log_(params.net_log), | 146 : net_log_(params.net_log), |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 case base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_NONE: | 417 case base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_NONE: |
| 419 break; | 418 break; |
| 420 case base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_MODERATE: | 419 case base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_MODERATE: |
| 421 case base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_CRITICAL: | 420 case base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_CRITICAL: |
| 422 CloseIdleConnections(); | 421 CloseIdleConnections(); |
| 423 break; | 422 break; |
| 424 } | 423 } |
| 425 } | 424 } |
| 426 | 425 |
| 427 } // namespace net | 426 } // namespace net |
| OLD | NEW |