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

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: Addressed mef comments Created 4 years, 5 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 @Override 92 @Override
93 public void stopNetLog() {} 93 public void stopNetLog() {}
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 setRequestFinishedListenerExecutor(Executor executor) {}
102
103 @Override
101 public void enableNetworkQualityEstimator(Executor executor) {} 104 public void enableNetworkQualityEstimator(Executor executor) {}
102 105
103 @Override 106 @Override
104 void enableNetworkQualityEstimatorForTesting( 107 void configureNetworkQualityEstimatorForTesting(
105 boolean useLocalHostRequests, boolean useSmallerResponses, Executor executor) {} 108 boolean useLocalHostRequests, boolean useSmallerResponses) {}
106 109
107 @Override 110 @Override
108 public void addRttListener(NetworkQualityRttListener listener) {} 111 public void addRttListener(NetworkQualityRttListener listener) {}
109 112
110 @Override 113 @Override
111 public void removeRttListener(NetworkQualityRttListener listener) {} 114 public void removeRttListener(NetworkQualityRttListener listener) {}
112 115
113 @Override 116 @Override
114 public void addThroughputListener(NetworkQualityThroughputListener listener) {} 117 public void addThroughputListener(NetworkQualityThroughputListener listener) {}
115 118
(...skipping 21 matching lines...) Expand all
137 // Returning null causes this factory to pass though, which ends up usin g the platform's 140 // Returning null causes this factory to pass though, which ends up usin g the platform's
138 // implementation. 141 // implementation.
139 return new URLStreamHandlerFactory() { 142 return new URLStreamHandlerFactory() {
140 @Override 143 @Override
141 public URLStreamHandler createURLStreamHandler(String protocol) { 144 public URLStreamHandler createURLStreamHandler(String protocol) {
142 return null; 145 return null;
143 } 146 }
144 }; 147 };
145 } 148 }
146 } 149 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698