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

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

Issue 2223773003: Expose effective connection type to Cronet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased, addressed 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 public int getEffectiveConnectionType() {
108 return EffectiveConnectionType.EFFECTIVE_CONNECTION_TYPE_UNKNOWN;
109 }
110
111 @Override
107 public void configureNetworkQualityEstimatorForTesting( 112 public void configureNetworkQualityEstimatorForTesting(
108 boolean useLocalHostRequests, boolean useSmallerResponses) {} 113 boolean useLocalHostRequests, boolean useSmallerResponses) {}
109 114
110 @Override 115 @Override
111 public void addRttListener(NetworkQualityRttListener listener) {} 116 public void addRttListener(NetworkQualityRttListener listener) {}
112 117
113 @Override 118 @Override
114 public void removeRttListener(NetworkQualityRttListener listener) {} 119 public void removeRttListener(NetworkQualityRttListener listener) {}
115 120
116 @Override 121 @Override
(...skipping 23 matching lines...) Expand all
140 // Returning null causes this factory to pass though, which ends up usin g the platform's 145 // Returning null causes this factory to pass though, which ends up usin g the platform's
141 // implementation. 146 // implementation.
142 return new URLStreamHandlerFactory() { 147 return new URLStreamHandlerFactory() {
143 @Override 148 @Override
144 public URLStreamHandler createURLStreamHandler(String protocol) { 149 public URLStreamHandler createURLStreamHandler(String protocol) {
145 return null; 150 return null;
146 } 151 }
147 }; 152 };
148 } 153 }
149 } 154 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698