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

Unified Diff: net/http/http_network_session.cc

Issue 339663010: Add a probability to Alternate-Protocol support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: eliminate static initializer Created 6 years, 5 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/http/http_network_session.h ('k') | net/http/http_network_transaction.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_network_session.cc
diff --git a/net/http/http_network_session.cc b/net/http/http_network_session.cc
index ff178da201e9bf0cdd0b33ebfe457ddf2da819e9..43153f780bbffa7b163922bc2d79f0c0d0cc0176 100644
--- a/net/http/http_network_session.cc
+++ b/net/http/http_network_session.cc
@@ -81,6 +81,7 @@ HttpNetworkSession::Params::Params()
force_spdy_over_ssl(true),
force_spdy_always(false),
use_alternate_protocols(false),
+ alternate_protocol_probability_threshold(0),
enable_websocket_over_spdy(false),
enable_quic(false),
enable_quic_port_selection(true),
@@ -182,6 +183,9 @@ HttpNetworkSession::HttpNetworkSession(const Params& params)
if (HpackHuffmanAggregator::UseAggregator()) {
huffman_aggregator_.reset(new HpackHuffmanAggregator());
}
+
+ http_server_properties_->SetAlternateProtocolProbabilityThreshold(
+ params.alternate_protocol_probability_threshold);
}
HttpNetworkSession::~HttpNetworkSession() {
« no previous file with comments | « net/http/http_network_session.h ('k') | net/http/http_network_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698