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

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

Issue 2763853002: Use Android callback API to obtain cellular signal strength (Closed)
Patch Set: ps Created 3 years, 9 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_PARAMS_H_ 5 #ifndef NET_NQE_NETWORK_QUALITY_ESTIMATOR_PARAMS_H_
6 #define NET_NQE_NETWORK_QUALITY_ESTIMATOR_PARAMS_H_ 6 #define NET_NQE_NETWORK_QUALITY_ESTIMATOR_PARAMS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 14 matching lines...) Expand all
25 const std::map<std::string, std::string>& variation_params); 25 const std::map<std::string, std::string>& variation_params);
26 26
27 // Computes and returns the weight multiplier per second, which represents the 27 // Computes and returns the weight multiplier per second, which represents the
28 // factor by which the weight of an observation reduces every second. 28 // factor by which the weight of an observation reduces every second.
29 // |variation_params| is the map containing all field trial parameters 29 // |variation_params| is the map containing all field trial parameters
30 // related to the NetworkQualityualityEstimator field trial. 30 // related to the NetworkQualityualityEstimator field trial.
31 double GetWeightMultiplierPerSecond( 31 double GetWeightMultiplierPerSecond(
32 const std::map<std::string, std::string>& variation_params); 32 const std::map<std::string, std::string>& variation_params);
33 33
34 // Returns the factor by which the weight of an observation reduces for every 34 // Returns the factor by which the weight of an observation reduces for every
35 // dBm difference between the current signal strength (in dBm), and the signal 35 // signal strength level difference between the current signal strength, and
36 // strength at the time when the observation was taken. 36 // the signal strength at the time when the observation was taken.
37 double GetWeightMultiplierPerDbm( 37 double GetWeightMultiplierPerSignalStrengthLevel(
38 const std::map<std::string, std::string>& variation_params); 38 const std::map<std::string, std::string>& variation_params);
39 39
40 // Returns a descriptive name corresponding to |connection_type|. 40 // Returns a descriptive name corresponding to |connection_type|.
41 const char* GetNameForConnectionType( 41 const char* GetNameForConnectionType(
42 net::NetworkChangeNotifier::ConnectionType connection_type); 42 net::NetworkChangeNotifier::ConnectionType connection_type);
43 43
44 // Sets the default observation for different connection types in 44 // Sets the default observation for different connection types in
45 // |default_observations|. The default observations are different for different 45 // |default_observations|. The default observations are different for different
46 // connection types (e.g., 2G, 3G, 4G, WiFi). The default observations may be 46 // connection types (e.g., 2G, 3G, 4G, WiFi). The default observations may be
47 // used to determine the network quality in absence of any other information. 47 // used to determine the network quality in absence of any other information.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 base::TimeDelta GetMinSocketWatcherNotificationInterval( 83 base::TimeDelta GetMinSocketWatcherNotificationInterval(
84 const std::map<std::string, std::string>& variation_params); 84 const std::map<std::string, std::string>& variation_params);
85 85
86 } // namespace internal 86 } // namespace internal
87 87
88 } // namespace nqe 88 } // namespace nqe
89 89
90 } // namespace net 90 } // namespace net
91 91
92 #endif // NET_NQE_NETWORK_QUALITY_ESTIMATOR_PARAMS_H_ 92 #endif // NET_NQE_NETWORK_QUALITY_ESTIMATOR_PARAMS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698