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

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

Issue 999353005: Land Recent QUIC Changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wrap 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 | « net/tools/quic/quic_server_test.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 6fa1114342a08b2e3aa73cfcd95b3f742b010b90..71ffb7d3ea1ce88214461c2bc095423f47b2a600 100644
--- a/net/tools/quic/quic_spdy_server_stream.h
+++ b/net/tools/quic/quic_spdy_server_stream.h
@@ -8,10 +8,9 @@
#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/tools/balsa/balsa_headers.h"
+#include "net/spdy/spdy_framer.h"
namespace net {
@@ -35,11 +34,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();
@@ -48,16 +49,14 @@ class QuicSpdyServerStream : public QuicDataStream {
// for the body
void SendErrorResponse();
- void SendHeadersAndBody(const BalsaHeaders& response_headers,
+ 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 | « net/tools/quic/quic_server_test.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