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

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

Issue 185083002: Avoid persisting of QUIC server config information in Stable and Beta (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed rch's comments from Patch set 1 Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « net/http/http_network_session.h ('k') | no next file » | 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 enable_spdy_ping_based_connection_checking(true), 77 enable_spdy_ping_based_connection_checking(true),
78 spdy_default_protocol(kProtoUnknown), 78 spdy_default_protocol(kProtoUnknown),
79 spdy_stream_initial_recv_window_size(0), 79 spdy_stream_initial_recv_window_size(0),
80 spdy_initial_max_concurrent_streams(0), 80 spdy_initial_max_concurrent_streams(0),
81 spdy_max_concurrent_streams_limit(0), 81 spdy_max_concurrent_streams_limit(0),
82 time_func(&base::TimeTicks::Now), 82 time_func(&base::TimeTicks::Now),
83 enable_quic(false), 83 enable_quic(false),
84 enable_quic_https(false), 84 enable_quic_https(false),
85 enable_quic_port_selection(true), 85 enable_quic_port_selection(true),
86 enable_quic_pacing(false), 86 enable_quic_pacing(false),
87 enable_quic_persist_server_info(false),
87 quic_clock(NULL), 88 quic_clock(NULL),
88 quic_random(NULL), 89 quic_random(NULL),
89 quic_max_packet_length(kDefaultMaxPacketSize), 90 quic_max_packet_length(kDefaultMaxPacketSize),
90 enable_user_alternate_protocol_ports(false), 91 enable_user_alternate_protocol_ports(false),
91 quic_crypto_client_stream_factory(NULL) { 92 quic_crypto_client_stream_factory(NULL) {
92 quic_supported_versions.push_back(QUIC_VERSION_15); 93 quic_supported_versions.push_back(QUIC_VERSION_15);
93 } 94 }
94 95
95 HttpNetworkSession::Params::~Params() {} 96 HttpNetworkSession::Params::~Params() {}
96 97
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 202
202 base::Value* HttpNetworkSession::QuicInfoToValue() const { 203 base::Value* HttpNetworkSession::QuicInfoToValue() const {
203 base::DictionaryValue* dict = new base::DictionaryValue(); 204 base::DictionaryValue* dict = new base::DictionaryValue();
204 dict->Set("sessions", quic_stream_factory_.QuicStreamFactoryInfoToValue()); 205 dict->Set("sessions", quic_stream_factory_.QuicStreamFactoryInfoToValue());
205 dict->SetBoolean("quic_enabled", params_.enable_quic); 206 dict->SetBoolean("quic_enabled", params_.enable_quic);
206 dict->SetBoolean("quic_enabled_https", params_.enable_quic_https); 207 dict->SetBoolean("quic_enabled_https", params_.enable_quic_https);
207 dict->SetBoolean("enable_quic_port_selection", 208 dict->SetBoolean("enable_quic_port_selection",
208 params_.enable_quic_port_selection); 209 params_.enable_quic_port_selection);
209 dict->SetBoolean("enable_quic_pacing", 210 dict->SetBoolean("enable_quic_pacing",
210 params_.enable_quic_pacing); 211 params_.enable_quic_pacing);
212 dict->SetBoolean("enable_quic_persist_server_info",
213 params_.enable_quic_persist_server_info);
211 dict->SetString("origin_to_force_quic_on", 214 dict->SetString("origin_to_force_quic_on",
212 params_.origin_to_force_quic_on.ToString()); 215 params_.origin_to_force_quic_on.ToString());
213 return dict; 216 return dict;
214 } 217 }
215 218
216 void HttpNetworkSession::CloseAllConnections() { 219 void HttpNetworkSession::CloseAllConnections() {
217 normal_socket_pool_manager_->FlushSocketPoolsWithError(ERR_ABORTED); 220 normal_socket_pool_manager_->FlushSocketPoolsWithError(ERR_ABORTED);
218 websocket_socket_pool_manager_->FlushSocketPoolsWithError(ERR_ABORTED); 221 websocket_socket_pool_manager_->FlushSocketPoolsWithError(ERR_ABORTED);
219 spdy_session_pool_.CloseCurrentSessions(ERR_ABORTED); 222 spdy_session_pool_.CloseCurrentSessions(ERR_ABORTED);
220 quic_stream_factory_.CloseAllSessions(ERR_ABORTED); 223 quic_stream_factory_.CloseAllSessions(ERR_ABORTED);
(...skipping 13 matching lines...) Expand all
234 case WEBSOCKET_SOCKET_POOL: 237 case WEBSOCKET_SOCKET_POOL:
235 return websocket_socket_pool_manager_.get(); 238 return websocket_socket_pool_manager_.get();
236 default: 239 default:
237 NOTREACHED(); 240 NOTREACHED();
238 break; 241 break;
239 } 242 }
240 return NULL; 243 return NULL;
241 } 244 }
242 245
243 } // namespace net 246 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_network_session.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698