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

Unified Diff: components/cronet/android/api/src/org/chromium/net/CronetEngine.java

Issue 2146563002: Expose effective connection type to Cronet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased, addressed Paul comments Created 4 years, 5 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
Index: components/cronet/android/api/src/org/chromium/net/CronetEngine.java
diff --git a/components/cronet/android/api/src/org/chromium/net/CronetEngine.java b/components/cronet/android/api/src/org/chromium/net/CronetEngine.java
index 95faf45ec2e59d314965447446f1b31aa227149b..5e0e204afbc0859ad5956c22c4403ac2d68b44e7 100644
--- a/components/cronet/android/api/src/org/chromium/net/CronetEngine.java
+++ b/components/cronet/android/api/src/org/chromium/net/CronetEngine.java
@@ -959,6 +959,13 @@ public abstract class CronetEngine {
public abstract byte[] getGlobalMetricsDeltas();
/**
+ * Returns the effective connection type computed by the network quality
+ * estimator.
+ * @hide as it's a prototype.
+ */
+ public abstract EffectiveConnectionType getEffectiveConnectionType();
+
+ /**
* Configures the network quality estimator for testing. This must be called
* before round trip time and throughput listeners are added, and after the
* network quality estimator has been enabled.

Powered by Google App Engine
This is Rietveld 408576698