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

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

Issue 1856073002: Coalesce small buffers in net::BidirectionalStream (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: self review Created 4 years, 8 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 android.content.Context; 7 import android.content.Context;
8 import android.net.http.HttpResponseCache; 8 import android.net.http.HttpResponseCache;
9 import android.support.annotation.IntDef; 9 import android.support.annotation.IntDef;
10 import android.support.annotation.Nullable; 10 import android.support.annotation.Nullable;
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 * and causing exceptions during shutdown. 697 * and causing exceptions during shutdown.
698 * 698 *
699 * @param url the URL for the stream 699 * @param url the URL for the stream
700 * @param callback the object whose methods get invoked upon different event s 700 * @param callback the object whose methods get invoked upon different event s
701 * @param executor the {@link Executor} on which all callbacks will be calle d 701 * @param executor the {@link Executor} on which all callbacks will be calle d
702 * @param httpMethod the HTTP method to use for the stream 702 * @param httpMethod the HTTP method to use for the stream
703 * @param requestHeaders the list of request headers 703 * @param requestHeaders the list of request headers
704 * @param priority priority of the stream which should be one of the 704 * @param priority priority of the stream which should be one of the
705 * {@link BidirectionalStream.Builder#STREAM_PRIORITY_IDLE STREAM_PR IORITY_*} 705 * {@link BidirectionalStream.Builder#STREAM_PRIORITY_IDLE STREAM_PR IORITY_*}
706 * values. 706 * values.
707 * @param disableAutoFlush whether auto flush should be disabled
707 * @return a new stream. 708 * @return a new stream.
708 */ 709 */
709 abstract BidirectionalStream createBidirectionalStream(String url, 710 abstract BidirectionalStream createBidirectionalStream(String url,
710 BidirectionalStream.Callback callback, Executor executor, String htt pMethod, 711 BidirectionalStream.Callback callback, Executor executor, String htt pMethod,
711 List<Map.Entry<String, String>> requestHeaders, 712 List<Map.Entry<String, String>> requestHeaders,
712 @BidirectionalStream.Builder.StreamPriority int priority); 713 @BidirectionalStream.Builder.StreamPriority int priority, boolean di sableAutoFlush);
713 714
714 /** 715 /**
715 * @return {@code true} if the engine is enabled. 716 * @return {@code true} if the engine is enabled.
716 */ 717 */
717 abstract boolean isEnabled(); 718 abstract boolean isEnabled();
718 719
719 /** 720 /**
720 * @return a human-readable version string of the engine. 721 * @return a human-readable version string of the engine.
721 */ 722 */
722 public abstract String getVersionString(); 723 public abstract String getVersionString();
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
1097 * @hide as it's a prototype. 1098 * @hide as it's a prototype.
1098 */ 1099 */
1099 public interface RequestFinishedListener { // TODO(klm): Add a convenience a bstract class. 1100 public interface RequestFinishedListener { // TODO(klm): Add a convenience a bstract class.
1100 /** 1101 /**
1101 * Invoked with request info. 1102 * Invoked with request info.
1102 * @param requestInfo {@link UrlRequestInfo} for finished request. 1103 * @param requestInfo {@link UrlRequestInfo} for finished request.
1103 */ 1104 */
1104 void onRequestFinished(UrlRequestInfo requestInfo); 1105 void onRequestFinished(UrlRequestInfo requestInfo);
1105 } 1106 }
1106 } 1107 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698