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

Unified Diff: net/tools/quic/quic_spdy_client_stream.cc

Issue 112343002: Merge ReliableQuicStream::WriteData with (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/tools/quic/quic_spdy_client_stream.h ('k') | net/tools/quic/quic_spdy_server_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_spdy_client_stream.cc
diff --git a/net/tools/quic/quic_spdy_client_stream.cc b/net/tools/quic/quic_spdy_client_stream.cc
index 2c7de8cf40414f6eb63922bd006d190c629c6bc6..1a0b3f07f75175fce649b9a68b8c20d5dc354c97 100644
--- a/net/tools/quic/quic_spdy_client_stream.cc
+++ b/net/tools/quic/quic_spdy_client_stream.cc
@@ -75,10 +75,10 @@ ssize_t QuicSpdyClientStream::SendRequest(const BalsaHeaders& headers,
bool has_body = !body.empty();
- WriteData(headers_string, fin && !has_body); // last_data
+ WriteOrBufferData(headers_string, fin && !has_body); // last_data
if (has_body) {
- WriteData(body, fin);
+ WriteOrBufferData(body, fin);
}
return headers_string.size() + body.size();
@@ -110,8 +110,8 @@ int QuicSpdyClientStream::ParseResponseHeaders() {
}
// Sends body data to the server and returns the number of bytes sent.
-ssize_t QuicSpdyClientStream::SendBody(const string& data, bool fin) {
- return WriteData(data, fin).bytes_consumed;
+void QuicSpdyClientStream::SendBody(const string& data, bool fin) {
+ return WriteOrBufferData(data, fin);
}
} // namespace tools
« no previous file with comments | « net/tools/quic/quic_spdy_client_stream.h ('k') | net/tools/quic/quic_spdy_server_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698