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