| 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.content.Context; | 7 import android.content.Context; |
| 8 import android.support.annotation.IntDef; | 8 import android.support.annotation.IntDef; |
| 9 import android.support.annotation.Nullable; | 9 import android.support.annotation.Nullable; |
| 10 import android.util.Log; | 10 import android.util.Log; |
| (...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 * @param httpMethod the HTTP method to use for the stream | 697 * @param httpMethod the HTTP method to use for the stream |
| 698 * @param requestHeaders the list of request headers | 698 * @param requestHeaders the list of request headers |
| 699 * @param priority priority of the stream which should be one of the | 699 * @param priority priority of the stream which should be one of the |
| 700 * {@link BidirectionalStream.Builder#STREAM_PRIORITY_IDLE STREAM_PR
IORITY_*} | 700 * {@link BidirectionalStream.Builder#STREAM_PRIORITY_IDLE STREAM_PR
IORITY_*} |
| 701 * values. | 701 * values. |
| 702 * @return a new stream. | 702 * @return a new stream. |
| 703 */ | 703 */ |
| 704 abstract BidirectionalStream createBidirectionalStream(String url, | 704 abstract BidirectionalStream createBidirectionalStream(String url, |
| 705 BidirectionalStream.Callback callback, Executor executor, String htt
pMethod, | 705 BidirectionalStream.Callback callback, Executor executor, String htt
pMethod, |
| 706 List<Map.Entry<String, String>> requestHeaders, | 706 List<Map.Entry<String, String>> requestHeaders, |
| 707 @BidirectionalStream.Builder.StreamPriority int priority); | 707 @BidirectionalStream.Builder.StreamPriority int priority, boolean di
sableAutoFlush); |
| 708 | 708 |
| 709 /** | 709 /** |
| 710 * @return {@code true} if the engine is enabled. | 710 * @return {@code true} if the engine is enabled. |
| 711 */ | 711 */ |
| 712 abstract boolean isEnabled(); | 712 abstract boolean isEnabled(); |
| 713 | 713 |
| 714 /** | 714 /** |
| 715 * @return a human-readable version string of the engine. | 715 * @return a human-readable version string of the engine. |
| 716 */ | 716 */ |
| 717 public abstract String getVersionString(); | 717 public abstract String getVersionString(); |
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1103 */ | 1103 */ |
| 1104 @Deprecated | 1104 @Deprecated |
| 1105 public interface RequestFinishedListener { // TODO(klm): Add a convenience a
bstract class. | 1105 public interface RequestFinishedListener { // TODO(klm): Add a convenience a
bstract class. |
| 1106 /** | 1106 /** |
| 1107 * Invoked with request info. | 1107 * Invoked with request info. |
| 1108 * @param requestInfo {@link UrlRequestInfo} for finished request. | 1108 * @param requestInfo {@link UrlRequestInfo} for finished request. |
| 1109 */ | 1109 */ |
| 1110 void onRequestFinished(UrlRequestInfo requestInfo); | 1110 void onRequestFinished(UrlRequestInfo requestInfo); |
| 1111 } | 1111 } |
| 1112 } | 1112 } |
| OLD | NEW |