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

Unified Diff: net/http/http_stream_factory_impl.cc

Issue 1765603002: Add QUIC 31 in which the server's proof covers both the static server config as well as a hash of t… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/quic/crypto/crypto_protocol.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_stream_factory_impl.cc
diff --git a/net/http/http_stream_factory_impl.cc b/net/http/http_stream_factory_impl.cc
index 962f513dc20af36ad4f58b4218d2bf8341a9be8e..06a5c0b6835797b9ee082764a10615d2e1e1b469 100644
--- a/net/http/http_stream_factory_impl.cc
+++ b/net/http/http_stream_factory_impl.cc
@@ -368,6 +368,18 @@ void HttpStreamFactoryImpl::OnPreconnectsComplete(const Job* job) {
}
bool HttpStreamFactoryImpl::IsQuicWhitelistedForHost(const std::string& host) {
+ bool whitelist_needed = false;
+ for (QuicVersion version : session_->params().quic_supported_versions) {
+ if (version <= QUIC_VERSION_30) {
+ whitelist_needed = true;
+ break;
+ }
+ }
+
+ // The QUIC whitelist is not needed in QUIC versions after 30.
+ if (!whitelist_needed)
+ return true;
+
if (session_->params().transport_security_state->IsGooglePinnedHost(host))
return true;
« no previous file with comments | « no previous file | net/quic/crypto/crypto_protocol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698