Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 598 | 598 |
| 599 // Buffer that holds RTT observations sorted by timestamp. | 599 // Buffer that holds RTT observations sorted by timestamp. |
| 600 RttObservationBuffer rtt_observations_; | 600 RttObservationBuffer rtt_observations_; |
| 601 | 601 |
| 602 // Default network quality observations obtained from the network quality | 602 // Default network quality observations obtained from the network quality |
| 603 // estimator field trial parameters. The observations are indexed by | 603 // estimator field trial parameters. The observations are indexed by |
| 604 // ConnectionType. | 604 // ConnectionType. |
| 605 nqe::internal::NetworkQuality | 605 nqe::internal::NetworkQuality |
| 606 default_observations_[NetworkChangeNotifier::CONNECTION_LAST + 1]; | 606 default_observations_[NetworkChangeNotifier::CONNECTION_LAST + 1]; |
| 607 | 607 |
| 608 // Default thresholds for different effective connection types. The default | |
| 609 // values are used if the thresholds are unavailable from the variation | |
| 610 // params. | |
| 611 nqe::internal::NetworkQuality | |
| 612 default_ect_thresholds_[EFFECTIVE_CONNECTION_TYPE_LAST]; | |
|
RyanSturm
2016/07/22 21:01:16
nit: s/default_ect_thresholds/default_effective_co
tbansal1
2016/07/22 21:35:50
Done.
| |
| 613 | |
| 608 // Thresholds for different effective connection types obtained from field | 614 // Thresholds for different effective connection types obtained from field |
| 609 // trial variation params. These thresholds encode how different connection | 615 // trial variation params. These thresholds encode how different connection |
| 610 // types behave in general. In future, complex encodings (e.g., curve | 616 // types behave in general. In future, complex encodings (e.g., curve |
| 611 // fitting) may be used. | 617 // fitting) may be used. |
| 612 nqe::internal::NetworkQuality | 618 nqe::internal::NetworkQuality |
| 613 connection_thresholds_[EFFECTIVE_CONNECTION_TYPE_LAST]; | 619 connection_thresholds_[EFFECTIVE_CONNECTION_TYPE_LAST]; |
| 614 | 620 |
| 615 // Latest time when the headers for a main frame request were received. | 621 // Latest time when the headers for a main frame request were received. |
| 616 base::TimeTicks last_main_frame_request_; | 622 base::TimeTicks last_main_frame_request_; |
| 617 | 623 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 654 base::ThreadChecker thread_checker_; | 660 base::ThreadChecker thread_checker_; |
| 655 | 661 |
| 656 base::WeakPtrFactory<NetworkQualityEstimator> weak_ptr_factory_; | 662 base::WeakPtrFactory<NetworkQualityEstimator> weak_ptr_factory_; |
| 657 | 663 |
| 658 DISALLOW_COPY_AND_ASSIGN(NetworkQualityEstimator); | 664 DISALLOW_COPY_AND_ASSIGN(NetworkQualityEstimator); |
| 659 }; | 665 }; |
| 660 | 666 |
| 661 } // namespace net | 667 } // namespace net |
| 662 | 668 |
| 663 #endif // NET_NQE_NETWORK_QUALITY_ESTIMATOR_H_ | 669 #endif // NET_NQE_NETWORK_QUALITY_ESTIMATOR_H_ |
| OLD | NEW |