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

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

Issue 444123003: Revert 284806 "Disable two recent Channel ID-related CLs to inve..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 4 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 | « trunk/src/net/quic/quic_crypto_client_stream.cc ('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/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/cpu.h" 9 #include "base/cpu.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 supported_versions_(supported_versions), 480 supported_versions_(supported_versions),
481 enable_port_selection_(enable_port_selection), 481 enable_port_selection_(enable_port_selection),
482 port_seed_(random_generator_->RandUint64()), 482 port_seed_(random_generator_->RandUint64()),
483 weak_factory_(this) { 483 weak_factory_(this) {
484 crypto_config_.SetDefaults(); 484 crypto_config_.SetDefaults();
485 crypto_config_.set_user_agent_id(user_agent_id); 485 crypto_config_.set_user_agent_id(user_agent_id);
486 crypto_config_.AddCanonicalSuffix(".c.youtube.com"); 486 crypto_config_.AddCanonicalSuffix(".c.youtube.com");
487 crypto_config_.AddCanonicalSuffix(".googlevideo.com"); 487 crypto_config_.AddCanonicalSuffix(".googlevideo.com");
488 crypto_config_.SetProofVerifier( 488 crypto_config_.SetProofVerifier(
489 new ProofVerifierChromium(cert_verifier, transport_security_state)); 489 new ProofVerifierChromium(cert_verifier, transport_security_state));
490 // TODO(wtc): a temporary change to investigate the performance degradation
491 // caused by Channel ID lookup.
492 #if 0
493 crypto_config_.SetChannelIDSource( 490 crypto_config_.SetChannelIDSource(
494 new ChannelIDSourceChromium(channel_id_service)); 491 new ChannelIDSourceChromium(channel_id_service));
495 #endif
496 base::CPU cpu; 492 base::CPU cpu;
497 if (cpu.has_aesni() && cpu.has_avx()) 493 if (cpu.has_aesni() && cpu.has_avx())
498 crypto_config_.PreferAesGcm(); 494 crypto_config_.PreferAesGcm();
499 if (!IsEcdsaSupported()) 495 if (!IsEcdsaSupported())
500 crypto_config_.DisableEcdsa(); 496 crypto_config_.DisableEcdsa();
501 } 497 }
502 498
503 QuicStreamFactory::~QuicStreamFactory() { 499 QuicStreamFactory::~QuicStreamFactory() {
504 CloseAllSessions(ERR_ABORTED); 500 CloseAllSessions(ERR_ABORTED);
505 while (!all_sessions_.empty()) { 501 while (!all_sessions_.empty()) {
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
964 http_server_properties_->ClearAlternateProtocol(server); 960 http_server_properties_->ClearAlternateProtocol(server);
965 http_server_properties_->SetAlternateProtocol( 961 http_server_properties_->SetAlternateProtocol(
966 server, alternate.port, alternate.protocol, 1); 962 server, alternate.port, alternate.protocol, 1);
967 DCHECK_EQ(QUIC, 963 DCHECK_EQ(QUIC,
968 http_server_properties_->GetAlternateProtocol(server).protocol); 964 http_server_properties_->GetAlternateProtocol(server).protocol);
969 DCHECK(http_server_properties_->WasAlternateProtocolRecentlyBroken( 965 DCHECK(http_server_properties_->WasAlternateProtocolRecentlyBroken(
970 server)); 966 server));
971 } 967 }
972 968
973 } // namespace net 969 } // namespace net
OLDNEW
« no previous file with comments | « trunk/src/net/quic/quic_crypto_client_stream.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698