Chromium Code Reviews| Index: components/cronet/android/java/src/org/chromium/net/NetworkQualityRttObserver.java |
| diff --git a/components/cronet/android/java/src/org/chromium/net/NetworkQualityRttObserver.java b/components/cronet/android/java/src/org/chromium/net/NetworkQualityRttObserver.java |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..113fe181fb5aab8525c6beb9aa6d0350f89eaace |
| --- /dev/null |
| +++ b/components/cronet/android/java/src/org/chromium/net/NetworkQualityRttObserver.java |
| @@ -0,0 +1,22 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +package org.chromium.net; |
| + |
| +/** |
| + * Interface to watch for observations of various round trip times (RTTs) at |
| + * various layers of the network stack. These include RTT estimates by QUIC |
| + * and TCP, as well as the time between when a URL request is sent and when |
| + * the first byte of the response is received. The source of the RTT is |
| + * included in the API. |
| + */ |
| +public interface NetworkQualityRttObserver { |
|
mef
2015/09/25 19:06:42
According to Android API Guildelines this here sho
bengr
2015/09/29 23:22:50
Done.
|
| + /** |
| + * Reports a new round trip time observation. |
| + * @param rttMs the round trip time in milliseconds. |
| + * @param whenMs the time since the epoch in milliseconds. |
| + * @param source the observation source from {@link NetworkQualityObservationSource}. |
| + */ |
| + public void onRttObservation(int rttMs, long whenMs, int source); |
| +} |