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

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

Issue 105103007: Minor cleanup of QuicSpdyServerStream and QuicSpdyClientStream. (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 ba0d3375974c29d38d261ced68ae9dd4b942976b..574ef76f33dfbc9e2d29fb8efd99145215a8ce1e 100644
--- a/net/tools/quic/quic_spdy_server_stream.h
+++ b/net/tools/quic/quic_spdy_server_stream.h
@@ -32,11 +32,13 @@ class QuicSpdyServerStream : public QuicDataStream {
// ReliableQuicStream implementation called by the session when there's
// data for us.
virtual uint32 ProcessData(const char* data, uint32 data_len) OVERRIDE;
-
- virtual void SendHeaders(const BalsaHeaders& response_headers);
+ virtual void OnFinRead() OVERRIDE;
int ParseRequestHeaders();
+ private:
+ friend class test::QuicSpdyServerStreamPeer;
+
// Sends a basic 200 response using SendHeaders for the headers and WriteData
// for the body.
void SendResponse();
@@ -45,19 +47,8 @@ class QuicSpdyServerStream : public QuicDataStream {
// for the body
void SendErrorResponse();
- // Returns whatever headers have been received for this stream.
- const BalsaHeaders& headers() { return headers_; }
-
- const string& body() { return body_; }
-
- protected:
- virtual void OnFinRead() OVERRIDE;
-
- private:
- friend class test::QuicSpdyServerStreamPeer;
-
void SendHeadersAndBody(const BalsaHeaders& response_headers,
- base::StringPiece data);
+ base::StringPiece body);
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