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

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

Issue 2172403002: Provide default thresholds for effective connection types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bengr comments Created 4 years, 4 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 | « net/nqe/network_quality.cc ('k') | 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 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « net/nqe/network_quality.cc ('k') | net/nqe/network_quality_estimator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698