| Index: components/cronet/android/java/src/org/chromium/net/UrlRequestContext.java
|
| diff --git a/components/cronet/android/java/src/org/chromium/net/UrlRequestContext.java b/components/cronet/android/java/src/org/chromium/net/UrlRequestContext.java
|
| index cc0e63da4ec04af087ea1b8412088573b282c8a1..f881241e6a2559e8fdb567ab94c46b5b6a816989 100644
|
| --- a/components/cronet/android/java/src/org/chromium/net/UrlRequestContext.java
|
| +++ b/components/cronet/android/java/src/org/chromium/net/UrlRequestContext.java
|
| @@ -94,6 +94,40 @@ public abstract class UrlRequestContext {
|
| public abstract void stopNetLog();
|
|
|
| /**
|
| + * Enables the network quality estimator. This must be called before RTT
|
| + * and throughput observers are added. Set both parameters to false
|
| + * for default behavior.
|
| + * @param useLocalHostRequests Include requests to localhost in estimates.
|
| + * @param useSmallerResponses Include small responses in throughput estimates.
|
| + */
|
| + public abstract void enableNetworkQualityEstimator(
|
| + boolean useLocalHostRequests, boolean useSmallerResponses);
|
| +
|
| + /**
|
| + * Adds an observer of round trip time observations.
|
| + * @param observer The observer of round trip times.
|
| + */
|
| + public abstract void addRTTObserver(NetworkQualityRTTObserver observer);
|
| +
|
| + /**
|
| + * Removes an observer of round trip times if on the observer list.
|
| + * @param observer The observer of round trip times.
|
| + */
|
| + public abstract void removeRTTObserver(NetworkQualityRTTObserver observer);
|
| +
|
| + /**
|
| + * Adds an observer of throughout.
|
| + * @param observer The observer of throughput.
|
| + */
|
| + public abstract void addThroughputObserver(NetworkQualityThroughputObserver observer);
|
| +
|
| + /**
|
| + * Removes an observer of throughput.
|
| + * @param observer The observer of throughput.
|
| + */
|
| + public abstract void removeThroughputObserver(NetworkQualityThroughputObserver observer);
|
| +
|
| + /**
|
| * Creates a {@link UrlRequestContext} with the given
|
| * {@link UrlRequestContextConfig}.
|
| * @param context Android {@link Context}.
|
|
|