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

Unified Diff: net/http/http_network_session.h

Issue 2026863002: Disable AltSvc from insecure origin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/http/http_network_session.cc » ('j') | net/http/http_stream_factory_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_network_session.h
diff --git a/net/http/http_network_session.h b/net/http/http_network_session.h
index c44de945c0dd0ad00cb716f8650cd701de63137f..fc114cb833ab818537402c967831125ebd608ba2 100644
--- a/net/http/http_network_session.h
+++ b/net/http/http_network_session.h
@@ -97,6 +97,10 @@ class NET_EXPORT HttpNetworkSession
// Whether to enable Alt-Svc entries with hostname different than that of
// the origin.
bool enable_alternative_service_with_different_host;
+ // Only set for tests.
+ // TODO(bnc) https://crbug.com/615497:
+ // Adapt tests to https requests, remove this member.
+ bool enable_alternative_service_for_insecure_origins;
// Enables NPN support. Note that ALPN is always enabled.
bool enable_npn;
« no previous file with comments | « no previous file | net/http/http_network_session.cc » ('j') | net/http/http_stream_factory_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698