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

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

Issue 2337253004: Update Token Binding code to the latest drafts (Closed)
Patch Set: Add call to CBS_len() Created 4 years, 3 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/quic/chromium/quic_http_stream.cc ('k') | net/socket/fuzzed_socket_factory.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/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 798 matching lines...) Expand 10 before | Expand all | Expand 10 after
809 crypto_config_.AddCanonicalSuffix(".ggpht.com"); 809 crypto_config_.AddCanonicalSuffix(".ggpht.com");
810 crypto_config_.AddCanonicalSuffix(".googlevideo.com"); 810 crypto_config_.AddCanonicalSuffix(".googlevideo.com");
811 crypto_config_.AddCanonicalSuffix(".googleusercontent.com"); 811 crypto_config_.AddCanonicalSuffix(".googleusercontent.com");
812 // TODO(rtenneti): http://crbug.com/487355. Temporary fix for b/20760730 until 812 // TODO(rtenneti): http://crbug.com/487355. Temporary fix for b/20760730 until
813 // channel_id_service is supported in cronet. 813 // channel_id_service is supported in cronet.
814 if (channel_id_service) { 814 if (channel_id_service) {
815 crypto_config_.SetChannelIDSource( 815 crypto_config_.SetChannelIDSource(
816 new ChannelIDSourceChromium(channel_id_service)); 816 new ChannelIDSourceChromium(channel_id_service));
817 } 817 }
818 if (enable_token_binding && channel_id_service) 818 if (enable_token_binding && channel_id_service)
819 crypto_config_.tb_key_params.push_back(kP256); 819 crypto_config_.tb_key_params.push_back(kTB10);
820 crypto::EnsureOpenSSLInit(); 820 crypto::EnsureOpenSSLInit();
821 bool has_aes_hardware_support = !!EVP_has_aes_hardware(); 821 bool has_aes_hardware_support = !!EVP_has_aes_hardware();
822 UMA_HISTOGRAM_BOOLEAN("Net.QuicSession.PreferAesGcm", 822 UMA_HISTOGRAM_BOOLEAN("Net.QuicSession.PreferAesGcm",
823 has_aes_hardware_support); 823 has_aes_hardware_support);
824 if (has_aes_hardware_support || prefer_aes_) 824 if (has_aes_hardware_support || prefer_aes_)
825 crypto_config_.PreferAesGcm(); 825 crypto_config_.PreferAesGcm();
826 // When disk cache is used to store the server configs, HttpCache code calls 826 // When disk cache is used to store the server configs, HttpCache code calls
827 // |set_quic_server_info_factory| if |quic_server_info_factory_| wasn't 827 // |set_quic_server_info_factory| if |quic_server_info_factory_| wasn't
828 // created. 828 // created.
829 if (max_server_configs_stored_in_properties > 0) { 829 if (max_server_configs_stored_in_properties > 0) {
(...skipping 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after
1907 void QuicStreamFactory::OpenFactory() { 1907 void QuicStreamFactory::OpenFactory() {
1908 status_ = OPEN; 1908 status_ = OPEN;
1909 } 1909 }
1910 1910
1911 void QuicStreamFactory::MaybeClearConsecutiveDisabledCount() { 1911 void QuicStreamFactory::MaybeClearConsecutiveDisabledCount() {
1912 if (status_ == OPEN) 1912 if (status_ == OPEN)
1913 consecutive_disabled_count_ = 0; 1913 consecutive_disabled_count_ = 0;
1914 } 1914 }
1915 1915
1916 } // namespace net 1916 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/chromium/quic_http_stream.cc ('k') | net/socket/fuzzed_socket_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698