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

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

Issue 2805743003: Allow posting the CronetEngine UI Thread initialization on a custom Ui executor instead of the defa… (Closed)
Patch Set: Created 3 years, 8 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 package org.chromium.net; 4 package org.chromium.net;
5 5
6 import android.content.Context; 6 import android.content.Context;
7 import android.support.annotation.VisibleForTesting; 7 import android.support.annotation.VisibleForTesting;
8 8
9 import java.io.IOException; 9 import java.io.IOException;
10 import java.net.Proxy; 10 import java.net.Proxy;
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 return this; 204 return this;
205 } 205 }
206 206
207 @Override 207 @Override
208 public Builder setLibraryLoader(LibraryLoader loader) { 208 public Builder setLibraryLoader(LibraryLoader loader) {
209 super.setLibraryLoader(loader); 209 super.setLibraryLoader(loader);
210 return this; 210 return this;
211 } 211 }
212 212
213 @Override 213 @Override
214 public Builder setUiThreadExecutor(Executor uiExecutor) {
215 super.setUiThreadExecutor(uiExecutor);
216 return this;
217 }
218
219 @Override
214 public Builder enableQuic(boolean value) { 220 public Builder enableQuic(boolean value) {
215 super.enableQuic(value); 221 super.enableQuic(value);
216 return this; 222 return this;
217 } 223 }
218 224
219 @Override 225 @Override
220 public Builder enableHttp2(boolean value) { 226 public Builder enableHttp2(boolean value) {
221 super.enableHttp2(value); 227 super.enableHttp2(value);
222 return this; 228 return this;
223 } 229 }
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 * {@link #CONNECTION_METRIC_UNKNOWN} if the value is 448 * {@link #CONNECTION_METRIC_UNKNOWN} if the value is
443 * unavailable. This must be called after 449 * unavailable. This must be called after
444 * {@link Builder#enableNetworkQualityEstimator}, and will 450 * {@link Builder#enableNetworkQualityEstimator}, and will
445 * throw an exception otherwise. 451 * throw an exception otherwise.
446 * @return Estimate of the downstream throughput in kilobits per second. 452 * @return Estimate of the downstream throughput in kilobits per second.
447 */ 453 */
448 public int getDownstreamThroughputKbps() { 454 public int getDownstreamThroughputKbps() {
449 return CONNECTION_METRIC_UNKNOWN; 455 return CONNECTION_METRIC_UNKNOWN;
450 } 456 }
451 } 457 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698