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

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

Issue 1889153004: NQE Cleanup in preparation for file splitting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 8 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/base/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_BASE_NETWORK_QUALITY_ESTIMATOR_H_ 5 #ifndef NET_BASE_NETWORK_QUALITY_ESTIMATOR_H_
6 #define NET_BASE_NETWORK_QUALITY_ESTIMATOR_H_ 6 #define NET_BASE_NETWORK_QUALITY_ESTIMATOR_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 601
602 // Determines if the requests to local host can be used in estimating the 602 // Determines if the requests to local host can be used in estimating the
603 // network quality. Set to true only for tests. 603 // network quality. Set to true only for tests.
604 const bool allow_localhost_requests_; 604 const bool allow_localhost_requests_;
605 605
606 // Determines if the responses smaller than |kMinTransferSizeInBytes| 606 // Determines if the responses smaller than |kMinTransferSizeInBytes|
607 // or shorter than |kMinTransferSizeInBytes| can be used in estimating the 607 // or shorter than |kMinTransferSizeInBytes| can be used in estimating the
608 // network quality. Set to true only for tests. 608 // network quality. Set to true only for tests.
609 const bool allow_small_responses_; 609 const bool allow_small_responses_;
610 610
611 // The factor by which the weight of an observation reduces every second.
612 const double weight_multiplier_per_second_;
613
611 // Time when last connection change was observed. 614 // Time when last connection change was observed.
612 base::TimeTicks last_connection_change_; 615 base::TimeTicks last_connection_change_;
613 616
614 // ID of the current network. 617 // ID of the current network.
615 NetworkID current_network_id_; 618 NetworkID current_network_id_;
616 619
617 // Peak network quality (fastest round-trip-time (RTT) and highest 620 // Peak network quality (fastest round-trip-time (RTT) and highest
618 // downstream throughput) measured since last connectivity change. RTT is 621 // downstream throughput) measured since last connectivity change. RTT is
619 // measured from time the request is sent until the first byte received. 622 // measured from time the request is sent until the first byte received.
620 // The accuracy is decreased by ignoring these factors: 623 // The accuracy is decreased by ignoring these factors:
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 base::ThreadChecker thread_checker_; 663 base::ThreadChecker thread_checker_;
661 664
662 base::WeakPtrFactory<NetworkQualityEstimator> weak_ptr_factory_; 665 base::WeakPtrFactory<NetworkQualityEstimator> weak_ptr_factory_;
663 666
664 DISALLOW_COPY_AND_ASSIGN(NetworkQualityEstimator); 667 DISALLOW_COPY_AND_ASSIGN(NetworkQualityEstimator);
665 }; 668 };
666 669
667 } // namespace net 670 } // namespace net
668 671
669 #endif // NET_BASE_NETWORK_QUALITY_ESTIMATOR_H_ 672 #endif // NET_BASE_NETWORK_QUALITY_ESTIMATOR_H_
OLDNEW
« no previous file with comments | « no previous file | net/base/network_quality_estimator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698