Index: net/quic/quic_chromium_client_stream.h |
diff --git a/net/quic/quic_chromium_client_stream.h b/net/quic/quic_chromium_client_stream.h |
index 41738956b910fac453c39298aee5232dd2f58236..78884f611d563e1e546d6fafe31de914b9c7a4af 100644 |
--- a/net/quic/quic_chromium_client_stream.h |
+++ b/net/quic/quic_chromium_client_stream.h |
@@ -8,6 +8,7 @@ |
#define NET_QUIC_QUIC_RELIABLE_CLIENT_STREAM_H_ |
#include <stddef.h> |
+#include <vector> |
#include "base/callback_forward.h" |
#include "base/macros.h" |
@@ -79,6 +80,12 @@ class NET_EXPORT_PRIVATE QuicChromiumClientStream : public QuicSpdyStream { |
int WriteStreamData(base::StringPiece data, |
bool fin, |
const CompletionCallback& callback); |
+ // Same as WriteStreamData except it writes data from a vector of IOBuffers, |
+ // with the length of each buffer at the corresponding index in |lengths|. |
+ int WritevStreamData(const std::vector<IOBuffer*>& buffers, |
+ const std::vector<int>& lengths, |
+ bool fin, |
+ const CompletionCallback& callback); |
// Set new |delegate|. |delegate| must not be NULL. |
// If this stream has already received data, OnDataReceived() will be |
// called on the delegate. |