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

Side by Side Diff: net/nqe/network_quality_estimator_params.cc

Issue 2893933004: Throughput: Change the min number of requests in flight required (Closed)
Patch Set: ryansturm comments Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « net/nqe/network_quality_estimator_params.h ('k') | net/nqe/throughput_analyzer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/nqe/network_quality_estimator_params.h ('k') | net/nqe/throughput_analyzer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698