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

Unified Diff: net/spdy/spdy_test_util_common.cc

Issue 2030023005: Disable AltSvc from insecure origin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 6 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 | « net/spdy/spdy_test_util_common.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_test_util_common.cc
diff --git a/net/spdy/spdy_test_util_common.cc b/net/spdy/spdy_test_util_common.cc
index 2acf8e195f2907146ebbbd4752673b618ea19ffe..048bf721767978e081590ca1b5807999aa3ae198 100644
--- a/net/spdy/spdy_test_util_common.cc
+++ b/net/spdy/spdy_test_util_common.cc
@@ -348,6 +348,7 @@ SpdySessionDependencies::SpdySessionDependencies(NextProto protocol)
enable_priority_dependencies(true),
enable_spdy31(true),
enable_quic(false),
+ enable_alternative_service_for_insecure_origins(true),
protocol(protocol),
session_max_recv_window_size(
SpdySession::GetDefaultInitialWindowSize(protocol)),
@@ -387,6 +388,7 @@ SpdySessionDependencies::SpdySessionDependencies(
enable_priority_dependencies(true),
enable_spdy31(true),
enable_quic(false),
+ enable_alternative_service_for_insecure_origins(true),
protocol(protocol),
session_max_recv_window_size(
SpdySession::GetDefaultInitialWindowSize(protocol)),
@@ -439,6 +441,8 @@ HttpNetworkSession::Params SpdySessionDependencies::CreateSessionParams(
session_deps->enable_priority_dependencies;
params.enable_spdy31 = session_deps->enable_spdy31;
params.enable_quic = session_deps->enable_quic;
+ params.enable_alternative_service_for_insecure_origins =
+ session_deps->enable_alternative_service_for_insecure_origins;
params.spdy_default_protocol = session_deps->protocol;
params.spdy_session_max_recv_window_size =
session_deps->session_max_recv_window_size;
« no previous file with comments | « net/spdy/spdy_test_util_common.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698