Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Side by Side Diff: components/cronet/android/api/src/org/chromium/net/JavaCronetEngine.java

Issue 2045703003: Enable NQE when Cronet Engine is built (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698