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

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

Issue 2146563002: Expose effective connection type to Cronet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased, addressed Paul comments Created 4 years, 4 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 public String getCertVerifierData(long timeout) { 97 public String getCertVerifierData(long timeout) {
98 return ""; 98 return "";
99 } 99 }
100 100
101 @Override 101 @Override
102 public byte[] getGlobalMetricsDeltas() { 102 public byte[] getGlobalMetricsDeltas() {
103 return new byte[0]; 103 return new byte[0];
104 } 104 }
105 105
106 @Override 106 @Override
107
xunjieli 2016/08/01 21:25:09 nit: new line not needed.
tbansal1 2016/08/02 19:03:11 Done.
108 public EffectiveConnectionType getEffectiveConnectionType() {
109 return EffectiveConnectionType.EFFECTIVE_CONNECTION_TYPE_UNKNOWN;
110 }
111
112 @Override
107 public void configureNetworkQualityEstimatorForTesting( 113 public void configureNetworkQualityEstimatorForTesting(
108 boolean useLocalHostRequests, boolean useSmallerResponses) {} 114 boolean useLocalHostRequests, boolean useSmallerResponses) {}
109 115
110 @Override 116 @Override
111 public void addRttListener(NetworkQualityRttListener listener) {} 117 public void addRttListener(NetworkQualityRttListener listener) {}
112 118
113 @Override 119 @Override
114 public void removeRttListener(NetworkQualityRttListener listener) {} 120 public void removeRttListener(NetworkQualityRttListener listener) {}
115 121
116 @Override 122 @Override
(...skipping 23 matching lines...) Expand all
140 // Returning null causes this factory to pass though, which ends up usin g the platform's 146 // Returning null causes this factory to pass though, which ends up usin g the platform's
141 // implementation. 147 // implementation.
142 return new URLStreamHandlerFactory() { 148 return new URLStreamHandlerFactory() {
143 @Override 149 @Override
144 public URLStreamHandler createURLStreamHandler(String protocol) { 150 public URLStreamHandler createURLStreamHandler(String protocol) {
145 return null; 151 return null;
146 } 152 }
147 }; 153 };
148 } 154 }
149 } 155 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698