| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.net; | 5 package org.chromium.net; |
| 6 | 6 |
| 7 import static android.os.Process.THREAD_PRIORITY_BACKGROUND; | 7 import static android.os.Process.THREAD_PRIORITY_BACKGROUND; |
| 8 import static android.os.Process.THREAD_PRIORITY_MORE_FAVORABLE; | 8 import static android.os.Process.THREAD_PRIORITY_MORE_FAVORABLE; |
| 9 | 9 |
| 10 import java.io.IOException; | 10 import java.io.IOException; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 public byte[] getGlobalMetricsDeltas() { | 106 public byte[] getGlobalMetricsDeltas() { |
| 107 return new byte[0]; | 107 return new byte[0]; |
| 108 } | 108 } |
| 109 | 109 |
| 110 @Override | 110 @Override |
| 111 public int getEffectiveConnectionType() { | 111 public int getEffectiveConnectionType() { |
| 112 return EffectiveConnectionType.TYPE_UNKNOWN; | 112 return EffectiveConnectionType.TYPE_UNKNOWN; |
| 113 } | 113 } |
| 114 | 114 |
| 115 @Override | 115 @Override |
| 116 public int getHttpRttMs() { | |
| 117 return RttThroughputValues.INVALID_RTT_THROUGHPUT; | |
| 118 } | |
| 119 | |
| 120 @Override | |
| 121 public int getTransportRttMs() { | |
| 122 return RttThroughputValues.INVALID_RTT_THROUGHPUT; | |
| 123 } | |
| 124 | |
| 125 @Override | |
| 126 public int getDownstreamThroughputKbps() { | |
| 127 return RttThroughputValues.INVALID_RTT_THROUGHPUT; | |
| 128 } | |
| 129 | |
| 130 @Override | |
| 131 public void configureNetworkQualityEstimatorForTesting( | 116 public void configureNetworkQualityEstimatorForTesting( |
| 132 boolean useLocalHostRequests, boolean useSmallerResponses) {} | 117 boolean useLocalHostRequests, boolean useSmallerResponses) {} |
| 133 | 118 |
| 134 @Override | 119 @Override |
| 135 public void addRttListener(NetworkQualityRttListener listener) {} | 120 public void addRttListener(NetworkQualityRttListener listener) {} |
| 136 | 121 |
| 137 @Override | 122 @Override |
| 138 public void removeRttListener(NetworkQualityRttListener listener) {} | 123 public void removeRttListener(NetworkQualityRttListener listener) {} |
| 139 | 124 |
| 140 @Override | 125 @Override |
| (...skipping 23 matching lines...) Expand all Loading... |
| 164 // Returning null causes this factory to pass though, which ends up usin
g the platform's | 149 // Returning null causes this factory to pass though, which ends up usin
g the platform's |
| 165 // implementation. | 150 // implementation. |
| 166 return new URLStreamHandlerFactory() { | 151 return new URLStreamHandlerFactory() { |
| 167 @Override | 152 @Override |
| 168 public URLStreamHandler createURLStreamHandler(String protocol) { | 153 public URLStreamHandler createURLStreamHandler(String protocol) { |
| 169 return null; | 154 return null; |
| 170 } | 155 } |
| 171 }; | 156 }; |
| 172 } | 157 } |
| 173 } | 158 } |
| OLD | NEW |