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

Unified Diff: net/http/http_server_properties_impl.cc

Issue 1091283007: Rename methods and members and const variables to alternative service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re: #4. Created 5 years, 8 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_server_properties_impl.cc
diff --git a/net/http/http_server_properties_impl.cc b/net/http/http_server_properties_impl.cc
index 11d20f6175a5b27778695ade895ed2786c9406b0..2e4bb6974b464cdf5c79266c0dd4ad083df71acb 100644
--- a/net/http/http_server_properties_impl.cc
+++ b/net/http/http_server_properties_impl.cc
@@ -27,7 +27,7 @@ HttpServerPropertiesImpl::HttpServerPropertiesImpl()
alternative_service_map_(AlternativeServiceMap::NO_AUTO_EVICT),
spdy_settings_map_(SpdySettingsMap::NO_AUTO_EVICT),
server_network_stats_map_(ServerNetworkStatsMap::NO_AUTO_EVICT),
- alternate_protocol_probability_threshold_(1),
+ alternative_service_probability_threshold_(1.0),
weak_ptr_factory_(this) {
canonical_suffixes_.push_back(".c.youtube.com");
canonical_suffixes_.push_back(".googlevideo.com");
@@ -227,7 +227,7 @@ AlternativeService HttpServerPropertiesImpl::GetAlternativeService(
AlternativeServiceMap::const_iterator it =
alternative_service_map_.Get(origin);
if (it != alternative_service_map_.end()) {
- if (it->second.probability < alternate_protocol_probability_threshold_) {
+ if (it->second.probability < alternative_service_probability_threshold_) {
return AlternativeService();
}
AlternativeService alternative_service(it->second.alternative_service);
@@ -245,7 +245,7 @@ AlternativeService HttpServerPropertiesImpl::GetAlternativeService(
if (it == alternative_service_map_.end()) {
return AlternativeService();
}
- if (it->second.probability < alternate_protocol_probability_threshold_) {
+ if (it->second.probability < alternative_service_probability_threshold_) {
return AlternativeService();
}
AlternativeService alternative_service(it->second.alternative_service);
@@ -290,7 +290,7 @@ void HttpServerPropertiesImpl::SetAlternativeService(
<< alternative_service_info.ToString() << ".";
}
} else {
- if (alternative_probability >= alternate_protocol_probability_threshold_) {
+ if (alternative_probability >= alternative_service_probability_threshold_) {
// TODO(rch): Consider the case where multiple requests are started
// before the first completes. In this case, only one of the jobs
// would reach this code, whereas all of them should should have.
@@ -506,9 +506,9 @@ HttpServerPropertiesImpl::server_network_stats_map() const {
return server_network_stats_map_;
}
-void HttpServerPropertiesImpl::SetAlternateProtocolProbabilityThreshold(
+void HttpServerPropertiesImpl::SetAlternativeServiceProbabilityThreshold(
double threshold) {
- alternate_protocol_probability_threshold_ = threshold;
+ alternative_service_probability_threshold_ = threshold;
}
AlternativeServiceMap::const_iterator

Powered by Google App Engine
This is Rietveld 408576698