| 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 852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 863 * and causing exceptions during shutdown. | 863 * and causing exceptions during shutdown. |
| 864 * | 864 * |
| 865 * @param url the URL for the stream | 865 * @param url the URL for the stream |
| 866 * @param callback the object whose methods get invoked upon different event
s | 866 * @param callback the object whose methods get invoked upon different event
s |
| 867 * @param executor the {@link Executor} on which all callbacks will be calle
d | 867 * @param executor the {@link Executor} on which all callbacks will be calle
d |
| 868 * @param httpMethod the HTTP method to use for the stream | 868 * @param httpMethod the HTTP method to use for the stream |
| 869 * @param requestHeaders the list of request headers | 869 * @param requestHeaders the list of request headers |
| 870 * @param priority priority of the stream which should be one of the | 870 * @param priority priority of the stream which should be one of the |
| 871 * {@link BidirectionalStream.Builder#STREAM_PRIORITY_IDLE STREAM_PR
IORITY_*} | 871 * {@link BidirectionalStream.Builder#STREAM_PRIORITY_IDLE STREAM_PR
IORITY_*} |
| 872 * values. | 872 * values. |
| 873 * @param disableAutoFlush whether auto flush should be disabled | |
| 874 * @param delayRequestHeadersUntilFirstFlush whether to delay sending reques
t | 873 * @param delayRequestHeadersUntilFirstFlush whether to delay sending reques
t |
| 875 * headers until flush() is called, and try to combine them | 874 * headers until flush() is called, and try to combine them |
| 876 * with the next data frame. | 875 * with the next data frame. |
| 877 * @return a new stream. | 876 * @return a new stream. |
| 878 * @hide only used by internal implementation. | 877 * @hide only used by internal implementation. |
| 879 */ | 878 */ |
| 880 public abstract BidirectionalStream createBidirectionalStream(String url, | 879 public abstract BidirectionalStream createBidirectionalStream(String url, |
| 881 BidirectionalStream.Callback callback, Executor executor, String htt
pMethod, | 880 BidirectionalStream.Callback callback, Executor executor, String htt
pMethod, |
| 882 List<Map.Entry<String, String>> requestHeaders, | 881 List<Map.Entry<String, String>> requestHeaders, |
| 883 @BidirectionalStream.Builder.StreamPriority int priority, boolean di
sableAutoFlush, | 882 @BidirectionalStream.Builder.StreamPriority int priority, |
| 884 boolean delayRequestHeadersUntilFirstFlush); | 883 boolean delayRequestHeadersUntilFirstFlush); |
| 885 | 884 |
| 886 /** | 885 /** |
| 887 * @return {@code true} if the engine is enabled. | 886 * @return {@code true} if the engine is enabled. |
| 888 * @hide only used by internal implementation. | 887 * @hide only used by internal implementation. |
| 889 */ | 888 */ |
| 890 public abstract boolean isEnabled(); | 889 public abstract boolean isEnabled(); |
| 891 | 890 |
| 892 /** | 891 /** |
| 893 * @return a human-readable version string of the engine. | 892 * @return a human-readable version string of the engine. |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1125 | 1124 |
| 1126 /** | 1125 /** |
| 1127 * Removes a finished request listener. | 1126 * Removes a finished request listener. |
| 1128 * | 1127 * |
| 1129 * @param listener the listener to remove. | 1128 * @param listener the listener to remove. |
| 1130 * | 1129 * |
| 1131 * @hide it's a prototype. | 1130 * @hide it's a prototype. |
| 1132 */ | 1131 */ |
| 1133 public abstract void removeRequestFinishedListener(RequestFinishedInfo.Liste
ner listener); | 1132 public abstract void removeRequestFinishedListener(RequestFinishedInfo.Liste
ner listener); |
| 1134 } | 1133 } |
| OLD | NEW |