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

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

Issue 1033833003: Remove Balsa from QuicSpdyServerStream. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | 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 e4f9d9305da8fd4222311657b51d8c1f86e0c8b0..da2048a4898b66892efd415dcc4dffcba5b18a5d 100644
--- a/net/tools/quic/quic_spdy_server_stream.h
+++ b/net/tools/quic/quic_spdy_server_stream.h
@@ -8,7 +8,6 @@
#include <string>
#include "base/basictypes.h"
-#include "net/base/io_buffer.h"
#include "net/quic/quic_data_stream.h"
#include "net/quic/quic_protocol.h"
#include "net/spdy/spdy_framer.h"
@@ -36,11 +35,13 @@ class QuicSpdyServerStream : public QuicDataStream {
uint32 ProcessData(const char* data, uint32 data_len) override;
void OnFinRead() override;
- void ParseRequestHeaders();
-
private:
friend class test::QuicSpdyServerStreamPeer;
+ // Parses the request headers from |data| to |request_headers_|.
+ // Returns false if there was an error parsing the headers.
+ bool ParseRequestHeaders(const char* data, uint32 data_len);
+
// Sends a basic 200 response using SendHeaders for the headers and WriteData
// for the body.
void SendResponse();
@@ -53,13 +54,11 @@ class QuicSpdyServerStream : public QuicDataStream {
void SendHeadersAndBody(const SpdyHeaderBlock& response_headers,
base::StringPiece body);
- BalsaHeaders headers_;
+ // The parsed headers received from the client.
+ SpdyHeaderBlock request_headers_;
+ int content_length_;
std::string body_;
- // Buffer into which response header data is read.
- scoped_refptr<GrowableIOBuffer> read_buf_;
- bool request_headers_received_;
-
DISALLOW_COPY_AND_ASSIGN(QuicSpdyServerStream);
};
« no previous file with comments | « no previous file | net/tools/quic/quic_spdy_server_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698