| 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 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 554 | 554 |
| 555 // Buffer that holds RTT observations sorted by timestamp. | 555 // Buffer that holds RTT observations sorted by timestamp. |
| 556 RttObservationBuffer rtt_observations_; | 556 RttObservationBuffer rtt_observations_; |
| 557 | 557 |
| 558 // Default network quality observations obtained from the network quality | 558 // Default network quality observations obtained from the network quality |
| 559 // estimator field trial parameters. The observations are indexed by | 559 // estimator field trial parameters. The observations are indexed by |
| 560 // ConnectionType. | 560 // ConnectionType. |
| 561 nqe::internal::NetworkQuality | 561 nqe::internal::NetworkQuality |
| 562 default_observations_[NetworkChangeNotifier::CONNECTION_LAST + 1]; | 562 default_observations_[NetworkChangeNotifier::CONNECTION_LAST + 1]; |
| 563 | 563 |
| 564 // Default thresholds for different effective connection types. The default |
| 565 // values are used if the thresholds are unavailable from the variation |
| 566 // params. |
| 567 nqe::internal::NetworkQuality default_effective_connection_type_thresholds_ |
| 568 [EFFECTIVE_CONNECTION_TYPE_LAST]; |
| 569 |
| 564 // Thresholds for different effective connection types obtained from field | 570 // Thresholds for different effective connection types obtained from field |
| 565 // trial variation params. These thresholds encode how different connection | 571 // trial variation params. These thresholds encode how different connection |
| 566 // types behave in general. In future, complex encodings (e.g., curve | 572 // types behave in general. In future, complex encodings (e.g., curve |
| 567 // fitting) may be used. | 573 // fitting) may be used. |
| 568 nqe::internal::NetworkQuality | 574 nqe::internal::NetworkQuality |
| 569 connection_thresholds_[EFFECTIVE_CONNECTION_TYPE_LAST]; | 575 connection_thresholds_[EFFECTIVE_CONNECTION_TYPE_LAST]; |
| 570 | 576 |
| 571 // Latest time when the headers for a main frame request were received. | 577 // Latest time when the headers for a main frame request were received. |
| 572 base::TimeTicks last_main_frame_request_; | 578 base::TimeTicks last_main_frame_request_; |
| 573 | 579 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 base::ThreadChecker thread_checker_; | 626 base::ThreadChecker thread_checker_; |
| 621 | 627 |
| 622 base::WeakPtrFactory<NetworkQualityEstimator> weak_ptr_factory_; | 628 base::WeakPtrFactory<NetworkQualityEstimator> weak_ptr_factory_; |
| 623 | 629 |
| 624 DISALLOW_COPY_AND_ASSIGN(NetworkQualityEstimator); | 630 DISALLOW_COPY_AND_ASSIGN(NetworkQualityEstimator); |
| 625 }; | 631 }; |
| 626 | 632 |
| 627 } // namespace net | 633 } // namespace net |
| 628 | 634 |
| 629 #endif // NET_NQE_NETWORK_QUALITY_ESTIMATOR_H_ | 635 #endif // NET_NQE_NETWORK_QUALITY_ESTIMATOR_H_ |
| OLD | NEW |