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

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

Issue 2253653002: Only allow HTTP/0.9 support on default ports. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Response to comments 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_network_session.h ('k') | net/http/http_network_transaction_unittest.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 #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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 proxy_delegate(NULL), 134 proxy_delegate(NULL),
135 enable_token_binding(false) { 135 enable_token_binding(false),
136 http_09_on_non_default_ports_enabled(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.
144 HttpNetworkSession::HttpNetworkSession(const Params& params) 145 HttpNetworkSession::HttpNetworkSession(const Params& params)
145 : net_log_(params.net_log), 146 : net_log_(params.net_log),
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 case base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_NONE: 416 case base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_NONE:
416 break; 417 break;
417 case base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_MODERATE: 418 case base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_MODERATE:
418 case base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_CRITICAL: 419 case base::MemoryPressureListener::MEMORY_PRESSURE_LEVEL_CRITICAL:
419 CloseIdleConnections(); 420 CloseIdleConnections();
420 break; 421 break;
421 } 422 }
422 } 423 }
423 424
424 } // namespace net 425 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_network_session.h ('k') | net/http/http_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698