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

Unified Diff: net/http/bidirectional_stream.h

Issue 1969893002: Remove unnecessary array allocation in cronet_bidirectional_stream_adapter.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add include vector Created 4 years, 7 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 | « components/cronet/android/cronet_bidirectional_stream_adapter.cc ('k') | net/http/bidirectional_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/bidirectional_stream.h
diff --git a/net/http/bidirectional_stream.h b/net/http/bidirectional_stream.h
index 71e69d7d9e04b76cb4f1bf4d8395aa3eac976e5d..86b3fff2d77180b8bde33c1a2f4df84b7aab47db 100644
--- a/net/http/bidirectional_stream.h
+++ b/net/http/bidirectional_stream.h
@@ -126,10 +126,12 @@ class NET_EXPORT BidirectionalStream
// invoked, and should not be called again until Delegate::OnDataSent is
// invoked. If |end_stream| is true, the DATA frame will have an END_STREAM
// flag.
- void SendData(IOBuffer* data, int length, bool end_stream);
+ void SendData(const scoped_refptr<IOBuffer>& data,
+ int length,
+ bool end_stream);
// Same as SendData except this takes in a vector of IOBuffers.
- void SendvData(const std::vector<IOBuffer*>& buffers,
+ void SendvData(const std::vector<scoped_refptr<IOBuffer>>& buffers,
const std::vector<int>& lengths,
bool end_stream);
« no previous file with comments | « components/cronet/android/cronet_bidirectional_stream_adapter.cc ('k') | net/http/bidirectional_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698