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

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

Issue 2695783003: NQE: Record the main frame metrics at transaction start (Closed)
Patch Set: Fix comments 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 663 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 // trial variation params. These thresholds encode how different connection 674 // trial variation params. These thresholds encode how different connection
675 // types behave in general. In future, complex encodings (e.g., curve 675 // types behave in general. In future, complex encodings (e.g., curve
676 // fitting) may be used. 676 // fitting) may be used.
677 nqe::internal::NetworkQuality connection_thresholds_ 677 nqe::internal::NetworkQuality connection_thresholds_
678 [EffectiveConnectionType::EFFECTIVE_CONNECTION_TYPE_LAST]; 678 [EffectiveConnectionType::EFFECTIVE_CONNECTION_TYPE_LAST];
679 679
680 // Typical network quality for different effective connection types. 680 // Typical network quality for different effective connection types.
681 nqe::internal::NetworkQuality typical_network_quality_ 681 nqe::internal::NetworkQuality typical_network_quality_
682 [EffectiveConnectionType::EFFECTIVE_CONNECTION_TYPE_LAST]; 682 [EffectiveConnectionType::EFFECTIVE_CONNECTION_TYPE_LAST];
683 683
684 // Latest time when the headers for a main frame request were received. 684 // Time when the transaction for the last main frame request was started.
685 base::TimeTicks last_main_frame_request_; 685 base::TimeTicks last_main_frame_request_;
686 686
687 // Estimated network quality when the response headers for the last mainframe 687 // Estimated network quality when the transaction for the last main frame
688 // request were received. 688 // request was started.
689 nqe::internal::NetworkQuality estimated_quality_at_last_main_frame_; 689 nqe::internal::NetworkQuality estimated_quality_at_last_main_frame_;
690 EffectiveConnectionType effective_connection_type_at_last_main_frame_; 690 EffectiveConnectionType effective_connection_type_at_last_main_frame_;
691 691
692 // Estimated network quality obtained from external estimate provider when the 692 // Estimated network quality obtained from external estimate provider when the
693 // external estimate provider was last queried. 693 // external estimate provider was last queried.
694 nqe::internal::NetworkQuality external_estimate_provider_quality_; 694 nqe::internal::NetworkQuality external_estimate_provider_quality_;
695 695
696 // ExternalEstimateProvider that provides network quality using operating 696 // ExternalEstimateProvider that provides network quality using operating
697 // system APIs. May be NULL. 697 // system APIs. May be NULL.
698 const std::unique_ptr<ExternalEstimateProvider> external_estimate_provider_; 698 const std::unique_ptr<ExternalEstimateProvider> external_estimate_provider_;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 nqe::internal::EventCreator event_creator_; 773 nqe::internal::EventCreator event_creator_;
774 774
775 base::WeakPtrFactory<NetworkQualityEstimator> weak_ptr_factory_; 775 base::WeakPtrFactory<NetworkQualityEstimator> weak_ptr_factory_;
776 776
777 DISALLOW_COPY_AND_ASSIGN(NetworkQualityEstimator); 777 DISALLOW_COPY_AND_ASSIGN(NetworkQualityEstimator);
778 }; 778 };
779 779
780 } // namespace net 780 } // namespace net
781 781
782 #endif // NET_NQE_NETWORK_QUALITY_ESTIMATOR_H_ 782 #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