Chromium Code Reviews| Index: components/cronet/android/java/src/org/chromium/net/NetworkQualityThroughputObserver.java |
| diff --git a/components/cronet/android/java/src/org/chromium/net/NetworkQualityThroughputObserver.java b/components/cronet/android/java/src/org/chromium/net/NetworkQualityThroughputObserver.java |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f31710b07a09ff305886ca3f2e9324d362eac0d8 |
| --- /dev/null |
| +++ b/components/cronet/android/java/src/org/chromium/net/NetworkQualityThroughputObserver.java |
| @@ -0,0 +1,18 @@ |
| +// 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 bandwidth. |
|
mef
2015/08/26 16:58:59
throughput?
bengr
2015/08/27 16:44:34
Done.
|
| + */ |
| +public interface NetworkQualityThroughputObserver { |
| + /** |
| + * Reports a new bandwidth observations. |
|
mef
2015/08/26 16:58:59
throughput?
bengr
2015/08/27 16:44:34
Done.
|
| + * @param throughputKbps The downstream throughput in kilobits per second. |
| + * @param whenMs The time since the epoch in milliseconds. |
| + * @param source The observation source from {@link NetworkQualityObservationSource}. |
| + */ |
| + public void onThroughputObservation(int throughputKbps, int whenMs, int source); |
| +} |