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

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

Issue 19858003: * Removed QuicTag kQuicVersion1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed comments from rch Created 7 years, 5 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/quic/quic_protocol_test.cc ('k') | net/quic/quic_stream_factory_test.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/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 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 // requiring the application to refill this OS buffer (ensuring that we don't 433 // requiring the application to refill this OS buffer (ensuring that we don't
434 // blast a pile of packets at the kernel's max egress rate). 434 // blast a pile of packets at the kernel's max egress rate).
435 // socket->SetSendBufferSize(????); 435 // socket->SetSendBufferSize(????);
436 436
437 QuicConnectionHelper* helper = new QuicConnectionHelper( 437 QuicConnectionHelper* helper = new QuicConnectionHelper(
438 base::MessageLoop::current()->message_loop_proxy().get(), 438 base::MessageLoop::current()->message_loop_proxy().get(),
439 clock_.get(), 439 clock_.get(),
440 random_generator_, 440 random_generator_,
441 socket); 441 socket);
442 442
443 QuicConnection* connection = new QuicConnection(guid, addr, helper, false); 443 QuicConnection* connection = new QuicConnection(guid, addr, helper, false,
444 QuicVersionMax());
444 445
445 QuicCryptoClientConfig* crypto_config = 446 QuicCryptoClientConfig* crypto_config =
446 GetOrCreateCryptoConfig(host_port_proxy_pair); 447 GetOrCreateCryptoConfig(host_port_proxy_pair);
447 DCHECK(crypto_config); 448 DCHECK(crypto_config);
448 449
449 QuicClientSession* session = 450 QuicClientSession* session =
450 new QuicClientSession(connection, socket, this, 451 new QuicClientSession(connection, socket, this,
451 quic_crypto_client_stream_factory_, 452 quic_crypto_client_stream_factory_,
452 host_port_proxy_pair.first.host(), config_, 453 host_port_proxy_pair.first.host(), config_,
453 crypto_config, net_log.net_log()); 454 crypto_config, net_log.net_log());
(...skipping 26 matching lines...) Expand all
480 DCHECK(crypto_config); 481 DCHECK(crypto_config);
481 } else { 482 } else {
482 crypto_config = new QuicCryptoClientConfig(); 483 crypto_config = new QuicCryptoClientConfig();
483 crypto_config->SetDefaults(); 484 crypto_config->SetDefaults();
484 all_crypto_configs_[host_port_proxy_pair] = crypto_config; 485 all_crypto_configs_[host_port_proxy_pair] = crypto_config;
485 } 486 }
486 return crypto_config; 487 return crypto_config;
487 } 488 }
488 489
489 } // namespace net 490 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_protocol_test.cc ('k') | net/quic/quic_stream_factory_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698