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

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

Issue 2712443002: NQE: Move ECT computation to NotifyHeadersReceived (Closed)
Patch Set: Created 3 years, 10 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 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 // trial variation params. These thresholds encode how different connection 665 // trial variation params. These thresholds encode how different connection
666 // types behave in general. In future, complex encodings (e.g., curve 666 // types behave in general. In future, complex encodings (e.g., curve
667 // fitting) may be used. 667 // fitting) may be used.
668 nqe::internal::NetworkQuality connection_thresholds_ 668 nqe::internal::NetworkQuality connection_thresholds_
669 [EffectiveConnectionType::EFFECTIVE_CONNECTION_TYPE_LAST]; 669 [EffectiveConnectionType::EFFECTIVE_CONNECTION_TYPE_LAST];
670 670
671 // Typical network quality for different effective connection types. 671 // Typical network quality for different effective connection types.
672 nqe::internal::NetworkQuality typical_network_quality_ 672 nqe::internal::NetworkQuality typical_network_quality_
673 [EffectiveConnectionType::EFFECTIVE_CONNECTION_TYPE_LAST]; 673 [EffectiveConnectionType::EFFECTIVE_CONNECTION_TYPE_LAST];
674 674
675 // Latest time when the headers for a main frame request were received. 675 // Time when the transaction for the last main frame request was started.
676 base::TimeTicks last_main_frame_request_; 676 base::TimeTicks last_main_frame_request_;
677 677
678 // Estimated network quality when the response headers for the last mainframe 678 // Estimated network quality when the transaction for the last main frame
679 // request were received. 679 // request was started.
680 nqe::internal::NetworkQuality estimated_quality_at_last_main_frame_; 680 nqe::internal::NetworkQuality estimated_quality_at_last_main_frame_;
681 EffectiveConnectionType effective_connection_type_at_last_main_frame_; 681 EffectiveConnectionType effective_connection_type_at_last_main_frame_;
682 682
683 // Estimated network quality obtained from external estimate provider when the 683 // Estimated network quality obtained from external estimate provider when the
684 // external estimate provider was last queried. 684 // external estimate provider was last queried.
685 nqe::internal::NetworkQuality external_estimate_provider_quality_; 685 nqe::internal::NetworkQuality external_estimate_provider_quality_;
686 686
687 // ExternalEstimateProvider that provides network quality using operating 687 // ExternalEstimateProvider that provides network quality using operating
688 // system APIs. May be NULL. 688 // system APIs. May be NULL.
689 const std::unique_ptr<ExternalEstimateProvider> external_estimate_provider_; 689 const std::unique_ptr<ExternalEstimateProvider> external_estimate_provider_;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 base::ThreadChecker thread_checker_; 761 base::ThreadChecker thread_checker_;
762 762
763 base::WeakPtrFactory<NetworkQualityEstimator> weak_ptr_factory_; 763 base::WeakPtrFactory<NetworkQualityEstimator> weak_ptr_factory_;
764 764
765 DISALLOW_COPY_AND_ASSIGN(NetworkQualityEstimator); 765 DISALLOW_COPY_AND_ASSIGN(NetworkQualityEstimator);
766 }; 766 };
767 767
768 } // namespace net 768 } // namespace net
769 769
770 #endif // NET_NQE_NETWORK_QUALITY_ESTIMATOR_H_ 770 #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