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

Unified Diff: net/nqe/network_quality_estimator.h

Issue 1879743002: Expose cellular signal strength on Android to native (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/net.gypi ('k') | net/nqe/network_quality_estimator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/nqe/network_quality_estimator.h
diff --git a/net/nqe/network_quality_estimator.h b/net/nqe/network_quality_estimator.h
index b7fc886b5ab558f41fe1ed6a1e364c9bfb0e5fb6..102dfa766f16f43cde4fa5b2da8de03932c65708 100644
--- a/net/nqe/network_quality_estimator.h
+++ b/net/nqe/network_quality_estimator.h
@@ -477,6 +477,11 @@ class NET_EXPORT_PRIVATE NetworkQualityEstimator
// main frame request is observed.
void RecordAccuracyAfterMainFrame(base::TimeDelta measuring_duration) const;
+ // Obtains the current cellular signal strength value and updates
+ // |min_signal_strength_since_connection_change_| and
+ // |max_signal_strength_since_connection_change_|.
+ void UpdateSignalStrength();
+
// Returns the effective type of the current connection based on only the
// samples observed after |start_time|. Uses HTTP RTT and downstream
// throughput to compute the effective connection type, and requires both of
@@ -606,6 +611,11 @@ class NET_EXPORT_PRIVATE NetworkQualityEstimator
// |effective_connection_type_recomputation_interval_| ago).
EffectiveConnectionType effective_connection_type_;
+ // Minimum and Maximum signal strength (in dbM) observed since last connection
+ // change. Updated on connection change and main frame requests.
+ int32_t min_signal_strength_since_connection_change_;
+ int32_t max_signal_strength_since_connection_change_;
+
base::ThreadChecker thread_checker_;
base::WeakPtrFactory<NetworkQualityEstimator> weak_ptr_factory_;
« no previous file with comments | « net/net.gypi ('k') | net/nqe/network_quality_estimator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698