OLD | NEW |
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 android.annotation.SuppressLint; | 7 import android.annotation.SuppressLint; |
8 import android.content.Context; | 8 import android.content.Context; |
9 import android.net.http.HttpResponseCache; | 9 import android.net.http.HttpResponseCache; |
10 import android.support.annotation.IntDef; | 10 import android.support.annotation.IntDef; |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 * Defaults to disabled. | 211 * Defaults to disabled. |
212 * @param value {@code true} makes the resulting {@link CronetEngine} | 212 * @param value {@code true} makes the resulting {@link CronetEngine} |
213 * use an implementation based on the system's | 213 * use an implementation based on the system's |
214 * {@link java.net.HttpURLConnection} implementation | 214 * {@link java.net.HttpURLConnection} implementation |
215 * without trying to load the native implementation. | 215 * without trying to load the native implementation. |
216 * {@code false} makes the resulting {@code CronetEngine} | 216 * {@code false} makes the resulting {@code CronetEngine} |
217 * use the native implementation, or if that fails to load, | 217 * use the native implementation, or if that fails to load, |
218 * falls back to an implementation based on the system's | 218 * falls back to an implementation based on the system's |
219 * {@link java.net.HttpURLConnection} implementation. | 219 * {@link java.net.HttpURLConnection} implementation. |
220 * @return the builder to facilitate chaining. | 220 * @return the builder to facilitate chaining. |
221 * @deprecated Not supported by the new API. | |
222 * @hide | |
223 */ | 221 */ |
224 @Deprecated | |
225 public Builder enableLegacyMode(boolean value) { | 222 public Builder enableLegacyMode(boolean value) { |
226 mLegacyModeEnabled = value; | 223 mLegacyModeEnabled = value; |
227 return this; | 224 return this; |
228 } | 225 } |
229 | 226 |
230 /** | 227 /** |
231 * @hide only used by internal implementation. | 228 * @hide only used by internal implementation. |
232 */ | 229 */ |
233 public boolean legacyMode() { | 230 public boolean legacyMode() { |
234 return mLegacyModeEnabled; | 231 return mLegacyModeEnabled; |
(...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1145 | 1142 |
1146 /** | 1143 /** |
1147 * Removes a finished request listener. | 1144 * Removes a finished request listener. |
1148 * | 1145 * |
1149 * @param listener the listener to remove. | 1146 * @param listener the listener to remove. |
1150 * | 1147 * |
1151 * @hide it's a prototype. | 1148 * @hide it's a prototype. |
1152 */ | 1149 */ |
1153 public abstract void removeRequestFinishedListener(RequestFinishedInfo.Liste
ner listener); | 1150 public abstract void removeRequestFinishedListener(RequestFinishedInfo.Liste
ner listener); |
1154 } | 1151 } |
OLD | NEW |