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

Unified Diff: net/http/bidirectional_stream_impl.h

Issue 1856073002: Coalesce small buffers in net::BidirectionalStream (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix javadoc 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/bidirectional_stream.cc ('k') | net/http/bidirectional_stream_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/bidirectional_stream_impl.h
diff --git a/net/http/bidirectional_stream_impl.h b/net/http/bidirectional_stream_impl.h
index 68caa3e6cfb2cac6c282b93a610afe416b139d14..b4d0045616d2e7ce7bb20f23bd862c95128a2015 100644
--- a/net/http/bidirectional_stream_impl.h
+++ b/net/http/bidirectional_stream_impl.h
@@ -36,13 +36,13 @@ class NET_EXPORT_PRIVATE BidirectionalStreamImpl {
public:
Delegate();
- // Called when the request headers have been sent.
+ // Called when the stream is ready for reading and writing.
// The delegate may call BidirectionalStreamImpl::ReadData to start reading,
// call BidirectionalStreamImpl::SendData to send data,
// or call BidirectionalStreamImpl::Cancel to cancel the stream.
// The delegate should not call BidirectionalStreamImpl::Cancel
// during this callback.
- virtual void OnHeadersSent() = 0;
+ virtual void OnStreamReady() = 0;
// Called when response headers are received.
// This is called at most once for the lifetime of a stream.
@@ -91,6 +91,7 @@ class NET_EXPORT_PRIVATE BidirectionalStreamImpl {
// Starts the BidirectionalStreamImpl and sends request headers.
virtual void Start(const BidirectionalStreamRequestInfo* request_info,
const BoundNetLog& net_log,
+ bool disable_auto_flush,
BidirectionalStreamImpl::Delegate* delegate,
std::unique_ptr<base::Timer> timer) = 0;
@@ -108,6 +109,10 @@ class NET_EXPORT_PRIVATE BidirectionalStreamImpl {
// will have an END_STREAM flag.
virtual void SendData(IOBuffer* data, int length, bool end_stream) = 0;
+ virtual void SendvData(const std::vector<IOBuffer*>& buffers,
+ const std::vector<int>& lengths,
+ bool end_stream) = 0;
+
// Cancels the stream. No Delegate method will be called. Any pending
// operations may or may not succeed.
virtual void Cancel() = 0;
« no previous file with comments | « net/http/bidirectional_stream.cc ('k') | net/http/bidirectional_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698