| OLD | NEW | 
|    1 // Copyright 2016 The Chromium Authors. All rights reserved. |    1 // Copyright 2016 The Chromium Authors. All rights reserved. | 
|    2 // Use of this source code is governed by a BSD-style license that can be |    2 // Use of this source code is governed by a BSD-style license that can be | 
|    3 // found in the LICENSE file. |    3 // found in the LICENSE file. | 
|    4  |    4  | 
|    5 #include "net/nqe/network_quality_estimator_params.h" |    5 #include "net/nqe/network_quality_estimator_params.h" | 
|    6  |    6  | 
|    7 #include <stdint.h> |    7 #include <stdint.h> | 
|    8  |    8  | 
|    9 #include "base/strings/string_number_conversions.h" |    9 #include "base/strings/string_number_conversions.h" | 
|   10 #include "base/time/time.h" |   10 #include "base/time/time.h" | 
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  361   (void)effective_connection_type_available; |  361   (void)effective_connection_type_available; | 
|  362  |  362  | 
|  363   return forced_effective_connection_type; |  363   return forced_effective_connection_type; | 
|  364 } |  364 } | 
|  365  |  365  | 
|  366 }  // namespace |  366 }  // namespace | 
|  367  |  367  | 
|  368 NetworkQualityEstimatorParams::NetworkQualityEstimatorParams( |  368 NetworkQualityEstimatorParams::NetworkQualityEstimatorParams( | 
|  369     const std::map<std::string, std::string>& params) |  369     const std::map<std::string, std::string>& params) | 
|  370     : params_(params), |  370     : params_(params), | 
 |  371       throughput_min_requests_in_flight_( | 
 |  372           GetValueForVariationParam(params_, | 
 |  373                                     "throughput_min_requests_in_flight", | 
 |  374                                     1)), | 
|  371       weight_multiplier_per_second_(GetWeightMultiplierPerSecond(params_)), |  375       weight_multiplier_per_second_(GetWeightMultiplierPerSecond(params_)), | 
|  372       weight_multiplier_per_dbm_( |  376       weight_multiplier_per_dbm_( | 
|  373           GetDoubleValueForVariationParamWithDefaultValue(params_, |  377           GetDoubleValueForVariationParamWithDefaultValue(params_, | 
|  374                                                           "rssi_weight_per_dbm", |  378                                                           "rssi_weight_per_dbm", | 
|  375                                                           1.0)), |  379                                                           1.0)), | 
|  376       correlation_uma_logging_probability_( |  380       correlation_uma_logging_probability_( | 
|  377           GetDoubleValueForVariationParamWithDefaultValue( |  381           GetDoubleValueForVariationParamWithDefaultValue( | 
|  378               params_, |  382               params_, | 
|  379               "correlation_logging_probability", |  383               "correlation_logging_probability", | 
|  380               0.01)), |  384               0.01)), | 
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  428     EffectiveConnectionType type) const { |  432     EffectiveConnectionType type) const { | 
|  429   DCHECK(thread_checker_.CalledOnValidThread()); |  433   DCHECK(thread_checker_.CalledOnValidThread()); | 
|  430   return connection_thresholds_[type]; |  434   return connection_thresholds_[type]; | 
|  431 } |  435 } | 
|  432  |  436  | 
|  433 }  // namespace internal |  437 }  // namespace internal | 
|  434  |  438  | 
|  435 }  // namespace nqe |  439 }  // namespace nqe | 
|  436  |  440  | 
|  437 }  // namespace net |  441 }  // namespace net | 
| OLD | NEW |