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

Unified Diff: net/tools/quic/quic_spdy_server_stream.h

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.cc ('k') | net/tools/quic/quic_spdy_server_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_spdy_server_stream.h
diff --git a/net/tools/quic/quic_spdy_server_stream.h b/net/tools/quic/quic_spdy_server_stream.h
index ad587cff5e2079f6ffe2eae49c496b9c5748f01f..12c84cdb92ee931fce7c4633d45ffbf993535493 100644
--- a/net/tools/quic/quic_spdy_server_stream.h
+++ b/net/tools/quic/quic_spdy_server_stream.h
@@ -40,11 +40,10 @@ class QuicSpdyServerStream : public ReliableQuicStream {
// Sends a basic 200 response using SendHeaders for the headers and WriteData
// for the body.
void SendResponse();
+
// Sends a basic 500 response using SendHeaders for the headers and WriteData
// for the body
void SendErrorResponse();
- // Make sure that as soon as we start writing data, we stop reading.
- virtual QuicConsumedData WriteData(base::StringPiece data, bool fin) OVERRIDE;
// Returns whatever headers have been received for this stream.
const BalsaHeaders& headers() { return headers_; }
@@ -57,6 +56,9 @@ class QuicSpdyServerStream : public ReliableQuicStream {
private:
friend class test::QuicSpdyServerStreamPeer;
+ void SendHeadersAndBody(const BalsaHeaders& response_headers,
+ base::StringPiece data);
+
BalsaHeaders headers_;
string body_;
« no previous file with comments | « net/tools/quic/quic_spdy_client_stream.cc ('k') | net/tools/quic/quic_spdy_server_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698