Chromium Code Reviews| OLD | NEW |
|---|---|
| 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/chromium/quic_stream_factory.h" | 5 #include "net/quic/chromium/quic_stream_factory.h" |
| 6 | 6 |
| 7 #include <openssl/aead.h> | 7 #include <openssl/aead.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <tuple> | 10 #include <tuple> |
| (...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 801 crypto_config_.AddCanonicalSuffix(".ggpht.com"); | 801 crypto_config_.AddCanonicalSuffix(".ggpht.com"); |
| 802 crypto_config_.AddCanonicalSuffix(".googlevideo.com"); | 802 crypto_config_.AddCanonicalSuffix(".googlevideo.com"); |
| 803 crypto_config_.AddCanonicalSuffix(".googleusercontent.com"); | 803 crypto_config_.AddCanonicalSuffix(".googleusercontent.com"); |
| 804 // TODO(rtenneti): http://crbug.com/487355. Temporary fix for b/20760730 until | 804 // TODO(rtenneti): http://crbug.com/487355. Temporary fix for b/20760730 until |
| 805 // channel_id_service is supported in cronet. | 805 // channel_id_service is supported in cronet. |
| 806 if (channel_id_service) { | 806 if (channel_id_service) { |
| 807 crypto_config_.SetChannelIDSource( | 807 crypto_config_.SetChannelIDSource( |
| 808 new ChannelIDSourceChromium(channel_id_service)); | 808 new ChannelIDSourceChromium(channel_id_service)); |
| 809 } | 809 } |
| 810 if (enable_token_binding && channel_id_service) | 810 if (enable_token_binding && channel_id_service) |
| 811 crypto_config_.tb_key_params.push_back(kP256); | 811 crypto_config_.tb_key_params.push_back(kTB10); |
|
davidben
2016/09/19 21:24:14
Mention the change in the commit message.
nharper
2016/09/19 22:32:23
Done.
| |
| 812 crypto::EnsureOpenSSLInit(); | 812 crypto::EnsureOpenSSLInit(); |
| 813 bool has_aes_hardware_support = !!EVP_has_aes_hardware(); | 813 bool has_aes_hardware_support = !!EVP_has_aes_hardware(); |
| 814 UMA_HISTOGRAM_BOOLEAN("Net.QuicSession.PreferAesGcm", | 814 UMA_HISTOGRAM_BOOLEAN("Net.QuicSession.PreferAesGcm", |
| 815 has_aes_hardware_support); | 815 has_aes_hardware_support); |
| 816 if (has_aes_hardware_support || prefer_aes_) | 816 if (has_aes_hardware_support || prefer_aes_) |
| 817 crypto_config_.PreferAesGcm(); | 817 crypto_config_.PreferAesGcm(); |
| 818 // When disk cache is used to store the server configs, HttpCache code calls | 818 // When disk cache is used to store the server configs, HttpCache code calls |
| 819 // |set_quic_server_info_factory| if |quic_server_info_factory_| wasn't | 819 // |set_quic_server_info_factory| if |quic_server_info_factory_| wasn't |
| 820 // created. | 820 // created. |
| 821 if (max_server_configs_stored_in_properties > 0) { | 821 if (max_server_configs_stored_in_properties > 0) { |
| (...skipping 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1866 // Since the session was active, there's no longer an | 1866 // Since the session was active, there's no longer an |
| 1867 // HttpStreamFactoryImpl::Job running which can mark it broken, unless the TCP | 1867 // HttpStreamFactoryImpl::Job running which can mark it broken, unless the TCP |
| 1868 // job also fails. So to avoid not using QUIC when we otherwise could, we mark | 1868 // job also fails. So to avoid not using QUIC when we otherwise could, we mark |
| 1869 // it as recently broken, which means that 0-RTT will be disabled but we'll | 1869 // it as recently broken, which means that 0-RTT will be disabled but we'll |
| 1870 // still race. | 1870 // still race. |
| 1871 http_server_properties_->MarkAlternativeServiceRecentlyBroken( | 1871 http_server_properties_->MarkAlternativeServiceRecentlyBroken( |
| 1872 alternative_service); | 1872 alternative_service); |
| 1873 } | 1873 } |
| 1874 | 1874 |
| 1875 } // namespace net | 1875 } // namespace net |
| OLD | NEW |