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

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

Issue 1918903002: Rename net/ _openssl files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unused method. Created 4 years, 7 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
« no previous file with comments | « net/net.gypi ('k') | net/ssl/token_binding.h » ('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 <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 9
10 #include <openssl/aead.h> 10 #include <openssl/aead.h>
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 crypto_config_.AddCanonicalSuffix(".c.youtube.com"); 668 crypto_config_.AddCanonicalSuffix(".c.youtube.com");
669 crypto_config_.AddCanonicalSuffix(".ggpht.com"); 669 crypto_config_.AddCanonicalSuffix(".ggpht.com");
670 crypto_config_.AddCanonicalSuffix(".googlevideo.com"); 670 crypto_config_.AddCanonicalSuffix(".googlevideo.com");
671 crypto_config_.AddCanonicalSuffix(".googleusercontent.com"); 671 crypto_config_.AddCanonicalSuffix(".googleusercontent.com");
672 // TODO(rtenneti): http://crbug.com/487355. Temporary fix for b/20760730 until 672 // TODO(rtenneti): http://crbug.com/487355. Temporary fix for b/20760730 until
673 // channel_id_service is supported in cronet. 673 // channel_id_service is supported in cronet.
674 if (channel_id_service) { 674 if (channel_id_service) {
675 crypto_config_.SetChannelIDSource( 675 crypto_config_.SetChannelIDSource(
676 new ChannelIDSourceChromium(channel_id_service)); 676 new ChannelIDSourceChromium(channel_id_service));
677 } 677 }
678 if (enable_token_binding && channel_id_service && IsTokenBindingSupported()) 678 if (enable_token_binding && channel_id_service)
679 crypto_config_.tb_key_params.push_back(kP256); 679 crypto_config_.tb_key_params.push_back(kP256);
680 crypto::EnsureOpenSSLInit(); 680 crypto::EnsureOpenSSLInit();
681 bool has_aes_hardware_support = !!EVP_has_aes_hardware(); 681 bool has_aes_hardware_support = !!EVP_has_aes_hardware();
682 UMA_HISTOGRAM_BOOLEAN("Net.QuicSession.PreferAesGcm", 682 UMA_HISTOGRAM_BOOLEAN("Net.QuicSession.PreferAesGcm",
683 has_aes_hardware_support); 683 has_aes_hardware_support);
684 if (has_aes_hardware_support || prefer_aes_) 684 if (has_aes_hardware_support || prefer_aes_)
685 crypto_config_.PreferAesGcm(); 685 crypto_config_.PreferAesGcm();
686 if (!IsEcdsaSupported()) 686 if (!IsEcdsaSupported())
687 crypto_config_.DisableEcdsa(); 687 crypto_config_.DisableEcdsa();
688 // When disk cache is used to store the server configs, HttpCache code calls 688 // When disk cache is used to store the server configs, HttpCache code calls
(...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after
1765 // Since the session was active, there's no longer an 1765 // Since the session was active, there's no longer an
1766 // HttpStreamFactoryImpl::Job running which can mark it broken, unless the TCP 1766 // HttpStreamFactoryImpl::Job running which can mark it broken, unless the TCP
1767 // job also fails. So to avoid not using QUIC when we otherwise could, we mark 1767 // job also fails. So to avoid not using QUIC when we otherwise could, we mark
1768 // it as recently broken, which means that 0-RTT will be disabled but we'll 1768 // it as recently broken, which means that 0-RTT will be disabled but we'll
1769 // still race. 1769 // still race.
1770 http_server_properties_->MarkAlternativeServiceRecentlyBroken( 1770 http_server_properties_->MarkAlternativeServiceRecentlyBroken(
1771 alternative_service); 1771 alternative_service);
1772 } 1772 }
1773 1773
1774 } // namespace net 1774 } // namespace net
OLDNEW
« no previous file with comments | « net/net.gypi ('k') | net/ssl/token_binding.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698