| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 return ""; | 102 return ""; |
| 103 } | 103 } |
| 104 | 104 |
| 105 @Override | 105 @Override |
| 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.EFFECTIVE_CONNECTION_TYPE_UNKNOWN; | 112 return EffectiveConnectionType.TYPE_UNKNOWN; |
| 113 } | 113 } |
| 114 | 114 |
| 115 @Override | 115 @Override |
| 116 public void configureNetworkQualityEstimatorForTesting( | 116 public void configureNetworkQualityEstimatorForTesting( |
| 117 boolean useLocalHostRequests, boolean useSmallerResponses) {} | 117 boolean useLocalHostRequests, boolean useSmallerResponses) {} |
| 118 | 118 |
| 119 @Override | 119 @Override |
| 120 public void addRttListener(NetworkQualityRttListener listener) {} | 120 public void addRttListener(NetworkQualityRttListener listener) {} |
| 121 | 121 |
| 122 @Override | 122 @Override |
| (...skipping 26 matching lines...) Expand all Loading... |
| 149 // 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 |
| 150 // implementation. | 150 // implementation. |
| 151 return new URLStreamHandlerFactory() { | 151 return new URLStreamHandlerFactory() { |
| 152 @Override | 152 @Override |
| 153 public URLStreamHandler createURLStreamHandler(String protocol) { | 153 public URLStreamHandler createURLStreamHandler(String protocol) { |
| 154 return null; | 154 return null; |
| 155 } | 155 } |
| 156 }; | 156 }; |
| 157 } | 157 } |
| 158 } | 158 } |
| OLD | NEW |