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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 94 |
95 @Override | 95 @Override |
96 public byte[] getGlobalMetricsDeltas() { | 96 public byte[] getGlobalMetricsDeltas() { |
97 return new byte[0]; | 97 return new byte[0]; |
98 } | 98 } |
99 | 99 |
100 @Override | 100 @Override |
101 public void enableNetworkQualityEstimator(Executor executor) {} | 101 public void enableNetworkQualityEstimator(Executor executor) {} |
102 | 102 |
103 @Override | 103 @Override |
104 void enableNetworkQualityEstimatorForTesting( | 104 void configureNetworkQualityEstimatorForTesting( |
105 boolean useLocalHostRequests, boolean useSmallerResponses, Executor
executor) {} | 105 boolean useLocalHostRequests, boolean useSmallerResponses) {} |
106 | 106 |
107 @Override | 107 @Override |
108 public void addRttListener(NetworkQualityRttListener listener) {} | 108 public void addRttListener(NetworkQualityRttListener listener) {} |
109 | 109 |
110 @Override | 110 @Override |
111 public void removeRttListener(NetworkQualityRttListener listener) {} | 111 public void removeRttListener(NetworkQualityRttListener listener) {} |
112 | 112 |
113 @Override | 113 @Override |
114 public void addThroughputListener(NetworkQualityThroughputListener listener)
{} | 114 public void addThroughputListener(NetworkQualityThroughputListener listener)
{} |
115 | 115 |
(...skipping 21 matching lines...) Expand all Loading... |
137 // Returning null causes this factory to pass though, which ends up usin
g the platform's | 137 // Returning null causes this factory to pass though, which ends up usin
g the platform's |
138 // implementation. | 138 // implementation. |
139 return new URLStreamHandlerFactory() { | 139 return new URLStreamHandlerFactory() { |
140 @Override | 140 @Override |
141 public URLStreamHandler createURLStreamHandler(String protocol) { | 141 public URLStreamHandler createURLStreamHandler(String protocol) { |
142 return null; | 142 return null; |
143 } | 143 } |
144 }; | 144 }; |
145 } | 145 } |
146 } | 146 } |
OLD | NEW |