OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 package org.chromium.net; |
| 6 |
| 7 /** |
| 8 * Interface to watch for observations of various round trip times (RTTs) at |
| 9 * various layers of the network stack. These include RTT estimates by QUIC |
| 10 * and TCP, as well as the time between when a URL request is sent and when |
| 11 * the first byte of the response is received. |
| 12 */ |
| 13 public interface NetworkQualityRttListener { |
| 14 /** |
| 15 * Reports a new round trip time observation. |
| 16 * @param rttMs the round trip time in milliseconds. |
| 17 * @param whenMs milliseconds since the Epoch (January 1st 1970, 00:00:00.00
0). |
| 18 * @param source the observation source from {@link NetworkQualityObservatio
nSource}. |
| 19 */ |
| 20 public void onRttObservation(int rttMs, long whenMs, int source); |
| 21 } |
OLD | NEW |