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

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: Address Ryan's comments 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.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 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 * and causing exceptions during shutdown. 692 * and causing exceptions during shutdown.
693 * 693 *
694 * @param url the URL for the stream 694 * @param url the URL for the stream
695 * @param callback the object whose methods get invoked upon different event s 695 * @param callback the object whose methods get invoked upon different event s
696 * @param executor the {@link Executor} on which all callbacks will be calle d 696 * @param executor the {@link Executor} on which all callbacks will be calle d
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 * @param disableAutoFlush whether auto flush should be disabled
702 * @return a new stream. 703 * @return a new stream.
703 */ 704 */
704 abstract BidirectionalStream createBidirectionalStream(String url, 705 abstract BidirectionalStream createBidirectionalStream(String url,
705 BidirectionalStream.Callback callback, Executor executor, String htt pMethod, 706 BidirectionalStream.Callback callback, Executor executor, String htt pMethod,
706 List<Map.Entry<String, String>> requestHeaders, 707 List<Map.Entry<String, String>> requestHeaders,
707 @BidirectionalStream.Builder.StreamPriority int priority); 708 @BidirectionalStream.Builder.StreamPriority int priority, boolean di sableAutoFlush);
708 709
709 /** 710 /**
710 * @return {@code true} if the engine is enabled. 711 * @return {@code true} if the engine is enabled.
711 */ 712 */
712 abstract boolean isEnabled(); 713 abstract boolean isEnabled();
713 714
714 /** 715 /**
715 * @return a human-readable version string of the engine. 716 * @return a human-readable version string of the engine.
716 */ 717 */
717 public abstract String getVersionString(); 718 public abstract String getVersionString();
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
1103 */ 1104 */
1104 @Deprecated 1105 @Deprecated
1105 public interface RequestFinishedListener { // TODO(klm): Add a convenience a bstract class. 1106 public interface RequestFinishedListener { // TODO(klm): Add a convenience a bstract class.
1106 /** 1107 /**
1107 * Invoked with request info. 1108 * Invoked with request info.
1108 * @param requestInfo {@link UrlRequestInfo} for finished request. 1109 * @param requestInfo {@link UrlRequestInfo} for finished request.
1109 */ 1110 */
1110 void onRequestFinished(UrlRequestInfo requestInfo); 1111 void onRequestFinished(UrlRequestInfo requestInfo);
1111 } 1112 }
1112 } 1113 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698