| 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 |
| 116 public void configureNetworkQualityEstimatorForTesting( | 131 public void configureNetworkQualityEstimatorForTesting( |
| 117 boolean useLocalHostRequests, boolean useSmallerResponses) {} | 132 boolean useLocalHostRequests, boolean useSmallerResponses) {} |
| 118 | 133 |
| 119 @Override | 134 @Override |
| 120 public void addRttListener(NetworkQualityRttListener listener) {} | 135 public void addRttListener(NetworkQualityRttListener listener) {} |
| 121 | 136 |
| 122 @Override | 137 @Override |
| 123 public void removeRttListener(NetworkQualityRttListener listener) {} | 138 public void removeRttListener(NetworkQualityRttListener listener) {} |
| 124 | 139 |
| 125 @Override | 140 @Override |
| (...skipping 23 matching lines...) Expand all Loading... |
| 149 // Returning null causes this factory to pass though, which ends up usin
g the platform's | 164 // Returning null causes this factory to pass though, which ends up usin
g the platform's |
| 150 // implementation. | 165 // implementation. |
| 151 return new URLStreamHandlerFactory() { | 166 return new URLStreamHandlerFactory() { |
| 152 @Override | 167 @Override |
| 153 public URLStreamHandler createURLStreamHandler(String protocol) { | 168 public URLStreamHandler createURLStreamHandler(String protocol) { |
| 154 return null; | 169 return null; |
| 155 } | 170 } |
| 156 }; | 171 }; |
| 157 } | 172 } |
| 158 } | 173 } |
| OLD | NEW |