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

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

Issue 2123993002: Fixed CronetHttpURLConnectionTest failure on Android N (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 android.content.Context; 7 import android.content.Context;
8 import android.os.Build; 8 import android.os.Build;
9 import android.os.ConditionVariable; 9 import android.os.ConditionVariable;
10 import android.os.Handler; 10 import android.os.Handler;
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 synchronized (mLock) { 156 synchronized (mLock) {
157 checkHaveAdapter(); 157 checkHaveAdapter();
158 return new CronetBidirectionalStream(this, url, priority, callback, executor, 158 return new CronetBidirectionalStream(this, url, priority, callback, executor,
159 httpMethod, requestHeaders, disableAutoFlush, 159 httpMethod, requestHeaders, disableAutoFlush,
160 delayRequestHeadersUntilFirstFlush); 160 delayRequestHeadersUntilFirstFlush);
161 } 161 }
162 } 162 }
163 163
164 @Override 164 @Override
165 public boolean isEnabled() { 165 public boolean isEnabled() {
166 return Build.VERSION.SDK_INT >= 14; 166 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH;
167 } 167 }
168 168
169 @Override 169 @Override
170 public String getVersionString() { 170 public String getVersionString() {
171 return "Cronet/" + Version.getVersion(); 171 return "Cronet/" + Version.getVersion();
172 } 172 }
173 173
174 @Override 174 @Override
175 public void shutdown() { 175 public void shutdown() {
176 synchronized (mLock) { 176 synchronized (mLock) {
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 577
578 @NativeClassQualifiedName("CronetURLRequestContextAdapter") 578 @NativeClassQualifiedName("CronetURLRequestContextAdapter")
579 private native void nativeEnableNetworkQualityEstimator(long nativePtr); 579 private native void nativeEnableNetworkQualityEstimator(long nativePtr);
580 580
581 @NativeClassQualifiedName("CronetURLRequestContextAdapter") 581 @NativeClassQualifiedName("CronetURLRequestContextAdapter")
582 private native void nativeProvideRTTObservations(long nativePtr, boolean sho uld); 582 private native void nativeProvideRTTObservations(long nativePtr, boolean sho uld);
583 583
584 @NativeClassQualifiedName("CronetURLRequestContextAdapter") 584 @NativeClassQualifiedName("CronetURLRequestContextAdapter")
585 private native void nativeProvideThroughputObservations(long nativePtr, bool ean should); 585 private native void nativeProvideThroughputObservations(long nativePtr, bool ean should);
586 } 586 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698