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

Unified Diff: net/http/http_server_properties.h

Issue 577103002: Display Alternate Protocol Probability Threshold in net-internals. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_server_properties.h
diff --git a/net/http/http_server_properties.h b/net/http/http_server_properties.h
index 718f4c5a4e54dee5b455cd55cd71432423a33350..c2427cdc76c3a5e8e2271c00ec316a9c4aa8cd08 100644
--- a/net/http/http_server_properties.h
+++ b/net/http/http_server_properties.h
@@ -181,6 +181,11 @@ class NET_EXPORT HttpServerProperties {
virtual void SetAlternateProtocolExperiment(
AlternateProtocolExperiment experiment) = 0;
+ // Sets the threshold to be used when evaluating Alternate-Protocol
+ // advertisments. Only advertisements with a with a probability
+ // greater than |threshold| will be honored. |threshold| must be
+ // between 0 and 1 inclusive. Hence, a threshold of 0 implies that
+ // all advertisements will be honored.
virtual void SetAlternateProtocolProbabilityThreshold(
double threshold) = 0;
« no previous file with comments | « net/http/http_network_session.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698