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

Unified Diff: net/http/http_network_session.h

Issue 1580583002: Add a whitelist for QUIC hosts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix more comments Created 4 years, 11 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
Index: net/http/http_network_session.h
diff --git a/net/http/http_network_session.h b/net/http/http_network_session.h
index 1c3d6a992eee371e1669ae0bffdcd4a986d6209b..d5acd6f21ad632837aa75443223b2eff17b9078c 100644
--- a/net/http/http_network_session.h
+++ b/net/http/http_network_session.h
@@ -10,6 +10,7 @@
#include <set>
#include <string>
+#include <unordered_set>
#include <vector>
#include "base/memory/ref_counted.h"
@@ -181,6 +182,9 @@ class NET_EXPORT HttpNetworkSession
int quic_idle_connection_timeout_seconds;
// If true, disable preconnections if QUIC can do 0RTT.
bool quic_disable_preconnect_if_0rtt;
+ // List of hosts for which QUIC is explicitly whitelisted.
+ std::unordered_set<std::string> quic_host_whitelist;
+
ProxyDelegate* proxy_delegate;
};

Powered by Google App Engine
This is Rietveld 408576698