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

Side by Side Diff: net/quic/quic_stream_factory.cc

Issue 99203003: QUIC - Move the logic for allowing a larger max from SetDefaults to the (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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 | « no previous file | 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/quic/quic_stream_factory.h" 5 #include "net/quic/quic_stream_factory.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 http_server_properties_(http_server_properties), 254 http_server_properties_(http_server_properties),
255 quic_crypto_client_stream_factory_(quic_crypto_client_stream_factory), 255 quic_crypto_client_stream_factory_(quic_crypto_client_stream_factory),
256 random_generator_(random_generator), 256 random_generator_(random_generator),
257 clock_(clock), 257 clock_(clock),
258 max_packet_length_(max_packet_length), 258 max_packet_length_(max_packet_length),
259 weak_factory_(this) { 259 weak_factory_(this) {
260 config_.SetDefaults(); 260 config_.SetDefaults();
261 config_.set_idle_connection_state_lifetime( 261 config_.set_idle_connection_state_lifetime(
262 QuicTime::Delta::FromSeconds(30), 262 QuicTime::Delta::FromSeconds(30),
263 QuicTime::Delta::FromSeconds(30)); 263 QuicTime::Delta::FromSeconds(30));
264 config_.set_server_initial_congestion_window(kDefaultInitialWindow,
265 kDefaultInitialWindow);
266 264
267 cannoncial_suffixes_.push_back(string(".c.youtube.com")); 265 cannoncial_suffixes_.push_back(string(".c.youtube.com"));
268 cannoncial_suffixes_.push_back(string(".googlevideo.com")); 266 cannoncial_suffixes_.push_back(string(".googlevideo.com"));
269 } 267 }
270 268
271 QuicStreamFactory::~QuicStreamFactory() { 269 QuicStreamFactory::~QuicStreamFactory() {
272 CloseAllSessions(ERR_ABORTED); 270 CloseAllSessions(ERR_ABORTED);
273 STLDeleteElements(&all_sessions_); 271 STLDeleteElements(&all_sessions_);
274 STLDeleteValues(&active_jobs_); 272 STLDeleteValues(&active_jobs_);
275 STLDeleteValues(&all_crypto_configs_); 273 STLDeleteValues(&all_crypto_configs_);
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 // Copy the CachedState for the canonical server from canonical_crypto_config 561 // Copy the CachedState for the canonical server from canonical_crypto_config
564 // as the initial CachedState for the server_hostname in crypto_config. 562 // as the initial CachedState for the server_hostname in crypto_config.
565 crypto_config->InitializeFrom(server_hostname, 563 crypto_config->InitializeFrom(server_hostname,
566 canonical_host_port_proxy_pair.first.host(), 564 canonical_host_port_proxy_pair.first.host(),
567 canonical_crypto_config); 565 canonical_crypto_config);
568 // Update canonical version to point at the "most recent" crypto_config. 566 // Update canonical version to point at the "most recent" crypto_config.
569 canonical_hostname_to_origin_map_[canonical_host_port] = host_port_proxy_pair; 567 canonical_hostname_to_origin_map_[canonical_host_port] = host_port_proxy_pair;
570 } 568 }
571 569
572 } // namespace net 570 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698