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

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

Issue 1502453003: QUIC - Disable Preconnect when QUIC can be spoken to a server with 0RTT (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test name Created 5 years 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_stream_factory_impl.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/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/debug/stack_trace.h" 10 #include "base/debug/stack_trace.h"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 quic_clock(NULL), 112 quic_clock(NULL),
113 quic_random(NULL), 113 quic_random(NULL),
114 quic_max_packet_length(kDefaultMaxPacketSize), 114 quic_max_packet_length(kDefaultMaxPacketSize),
115 enable_user_alternate_protocol_ports(false), 115 enable_user_alternate_protocol_ports(false),
116 quic_crypto_client_stream_factory(NULL), 116 quic_crypto_client_stream_factory(NULL),
117 quic_max_recent_disabled_reasons(kQuicMaxRecentDisabledReasons), 117 quic_max_recent_disabled_reasons(kQuicMaxRecentDisabledReasons),
118 quic_threshold_public_resets_post_handshake(0), 118 quic_threshold_public_resets_post_handshake(0),
119 quic_threshold_timeouts_streams_open(0), 119 quic_threshold_timeouts_streams_open(0),
120 quic_close_sessions_on_ip_change(false), 120 quic_close_sessions_on_ip_change(false),
121 quic_idle_connection_timeout_seconds(kIdleConnectionTimeoutSeconds), 121 quic_idle_connection_timeout_seconds(kIdleConnectionTimeoutSeconds),
122 quic_disable_preconnect_if_0rtt(false),
122 proxy_delegate(NULL) { 123 proxy_delegate(NULL) {
123 quic_supported_versions.push_back(QUIC_VERSION_25); 124 quic_supported_versions.push_back(QUIC_VERSION_25);
124 } 125 }
125 126
126 HttpNetworkSession::Params::~Params() {} 127 HttpNetworkSession::Params::~Params() {}
127 128
128 // TODO(mbelshe): Move the socket factories into HttpStreamFactory. 129 // TODO(mbelshe): Move the socket factories into HttpStreamFactory.
129 HttpNetworkSession::HttpNetworkSession(const Params& params) 130 HttpNetworkSession::HttpNetworkSession(const Params& params)
130 : net_log_(params.net_log), 131 : net_log_(params.net_log),
131 network_delegate_(params.network_delegate), 132 network_delegate_(params.network_delegate),
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 case WEBSOCKET_SOCKET_POOL: 356 case WEBSOCKET_SOCKET_POOL:
356 return websocket_socket_pool_manager_.get(); 357 return websocket_socket_pool_manager_.get();
357 default: 358 default:
358 NOTREACHED(); 359 NOTREACHED();
359 break; 360 break;
360 } 361 }
361 return NULL; 362 return NULL;
362 } 363 }
363 364
364 } // namespace net 365 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_network_session.h ('k') | net/http/http_stream_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698