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

Side by Side Diff: net/nqe/network_quality_estimator.h

Issue 2890683002: Override RTT and throughput when ECT is overridden (Closed)
Patch Set: Rebased 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 | « no previous file | net/nqe/network_quality_estimator.cc » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef NET_NQE_NETWORK_QUALITY_ESTIMATOR_H_ 5 #ifndef NET_NQE_NETWORK_QUALITY_ESTIMATOR_H_
6 #define NET_NQE_NETWORK_QUALITY_ESTIMATOR_H_ 6 #define NET_NQE_NETWORK_QUALITY_ESTIMATOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 FRIEND_TEST_ALL_PREFIXES(NetworkQualityEstimatorTest, ComputedPercentiles); 463 FRIEND_TEST_ALL_PREFIXES(NetworkQualityEstimatorTest, ComputedPercentiles);
464 FRIEND_TEST_ALL_PREFIXES(NetworkQualityEstimatorTest, TestGetMetricsSince); 464 FRIEND_TEST_ALL_PREFIXES(NetworkQualityEstimatorTest, TestGetMetricsSince);
465 FRIEND_TEST_ALL_PREFIXES(NetworkQualityEstimatorTest, 465 FRIEND_TEST_ALL_PREFIXES(NetworkQualityEstimatorTest,
466 TestExternalEstimateProviderMergeEstimates); 466 TestExternalEstimateProviderMergeEstimates);
467 FRIEND_TEST_ALL_PREFIXES(NetworkQualityEstimatorTest, 467 FRIEND_TEST_ALL_PREFIXES(NetworkQualityEstimatorTest,
468 UnknownEffectiveConnectionType); 468 UnknownEffectiveConnectionType);
469 FRIEND_TEST_ALL_PREFIXES(NetworkQualityEstimatorTest, 469 FRIEND_TEST_ALL_PREFIXES(NetworkQualityEstimatorTest,
470 TypicalNetworkQualities); 470 TypicalNetworkQualities);
471 FRIEND_TEST_ALL_PREFIXES(NetworkQualityEstimatorTest, 471 FRIEND_TEST_ALL_PREFIXES(NetworkQualityEstimatorTest,
472 OnPrefsReadWithReadingDisabled); 472 OnPrefsReadWithReadingDisabled);
473 FRIEND_TEST_ALL_PREFIXES(NetworkQualityEstimatorTest,
474 ForceEffectiveConnectionTypeThroughFieldTrial);
473 475
474 // Value of round trip time observations is in base::TimeDelta. 476 // Value of round trip time observations is in base::TimeDelta.
475 typedef nqe::internal::Observation<base::TimeDelta> RttObservation; 477 typedef nqe::internal::Observation<base::TimeDelta> RttObservation;
476 typedef nqe::internal::ObservationBuffer<base::TimeDelta> 478 typedef nqe::internal::ObservationBuffer<base::TimeDelta>
477 RttObservationBuffer; 479 RttObservationBuffer;
478 480
479 // Value of throughput observations is in kilobits per second. 481 // Value of throughput observations is in kilobits per second.
480 typedef nqe::internal::Observation<int32_t> ThroughputObservation; 482 typedef nqe::internal::Observation<int32_t> ThroughputObservation;
481 typedef nqe::internal::ObservationBuffer<int32_t> ThroughputObservationBuffer; 483 typedef nqe::internal::ObservationBuffer<int32_t> ThroughputObservationBuffer;
482 484
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 disallowed_observation_sources_for_transport_; 789 disallowed_observation_sources_for_transport_;
788 790
789 base::WeakPtrFactory<NetworkQualityEstimator> weak_ptr_factory_; 791 base::WeakPtrFactory<NetworkQualityEstimator> weak_ptr_factory_;
790 792
791 DISALLOW_COPY_AND_ASSIGN(NetworkQualityEstimator); 793 DISALLOW_COPY_AND_ASSIGN(NetworkQualityEstimator);
792 }; 794 };
793 795
794 } // namespace net 796 } // namespace net
795 797
796 #endif // NET_NQE_NETWORK_QUALITY_ESTIMATOR_H_ 798 #endif // NET_NQE_NETWORK_QUALITY_ESTIMATOR_H_
OLDNEW
« no previous file with comments | « no previous file | net/nqe/network_quality_estimator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698