| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 | 99 |
| 100 @Override | 100 @Override |
| 101 public byte[] getGlobalMetricsDeltas() { | 101 public byte[] getGlobalMetricsDeltas() { |
| 102 return new byte[0]; | 102 return new byte[0]; |
| 103 } | 103 } |
| 104 | 104 |
| 105 @Override | 105 @Override |
| 106 public void setRequestFinishedListenerExecutor(Executor executor) {} | 106 public void setRequestFinishedListenerExecutor(Executor executor) {} |
| 107 | 107 |
| 108 @Override | 108 @Override |
| 109 public int getEffectiveConnectionType() { |
| 110 return EffectiveConnectionType.EFFECTIVE_CONNECTION_TYPE_UNKNOWN; |
| 111 } |
| 112 |
| 113 @Override |
| 109 public void enableNetworkQualityEstimator(Executor executor) {} | 114 public void enableNetworkQualityEstimator(Executor executor) {} |
| 110 | 115 |
| 111 @Override | 116 @Override |
| 112 void configureNetworkQualityEstimatorForTesting( | 117 void configureNetworkQualityEstimatorForTesting( |
| 113 boolean useLocalHostRequests, boolean useSmallerResponses) {} | 118 boolean useLocalHostRequests, boolean useSmallerResponses) {} |
| 114 | 119 |
| 115 @Override | 120 @Override |
| 116 public void addRttListener(NetworkQualityRttListener listener) {} | 121 public void addRttListener(NetworkQualityRttListener listener) {} |
| 117 | 122 |
| 118 @Override | 123 @Override |
| (...skipping 26 matching lines...) Expand all Loading... |
| 145 // Returning null causes this factory to pass though, which ends up usin
g the platform's | 150 // Returning null causes this factory to pass though, which ends up usin
g the platform's |
| 146 // implementation. | 151 // implementation. |
| 147 return new URLStreamHandlerFactory() { | 152 return new URLStreamHandlerFactory() { |
| 148 @Override | 153 @Override |
| 149 public URLStreamHandler createURLStreamHandler(String protocol) { | 154 public URLStreamHandler createURLStreamHandler(String protocol) { |
| 150 return null; | 155 return null; |
| 151 } | 156 } |
| 152 }; | 157 }; |
| 153 } | 158 } |
| 154 } | 159 } |
| OLD | NEW |