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

Side by Side Diff: net/quic/quic_spdy_server_stream.h

Issue 337093003: QuicServer: Use Chrome's header parsing rather than Balsa (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@quic_server_3
Patch Set: Lowercase SPDY header Created 6 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_QUIC_QUIC_SPDY_SERVER_STREAM_H_ 5 #ifndef NET_QUIC_QUIC_SPDY_SERVER_STREAM_H_
6 #define NET_QUIC_QUIC_SPDY_SERVER_STREAM_H_ 6 #define NET_QUIC_QUIC_SPDY_SERVER_STREAM_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "net/base/io_buffer.h" 11 #include "net/base/io_buffer.h"
12 #include "net/http/http_response_headers.h"
wtc 2014/06/25 22:22:24 A forward declaration of class HttpResponseHeaders
dmziegler 2014/06/26 01:23:29 Done.
12 #include "net/quic/quic_data_stream.h" 13 #include "net/quic/quic_data_stream.h"
13 #include "net/quic/quic_protocol.h" 14 #include "net/quic/quic_protocol.h"
14 #include "net/tools/balsa/balsa_headers.h" 15 #include "url/gurl.h"
15 16
16 namespace net { 17 namespace net {
17 18
18 class QuicSession; 19 class QuicSession;
19 20
20 namespace test { 21 namespace test {
21 class QuicSpdyServerStreamPeer; 22 class QuicSpdyServerStreamPeer;
22 } // namespace test 23 } // namespace test
23 24
24 // All this does right now is aggregate data, and on fin, send an HTTP 25 // All this does right now is aggregate data, and on fin, send an HTTP
(...skipping 14 matching lines...) Expand all
39 friend class test::QuicSpdyServerStreamPeer; 40 friend class test::QuicSpdyServerStreamPeer;
40 41
41 // Sends a basic 200 response using SendHeaders for the headers and WriteData 42 // Sends a basic 200 response using SendHeaders for the headers and WriteData
42 // for the body. 43 // for the body.
43 void SendResponse(); 44 void SendResponse();
44 45
45 // Sends a basic 500 response using SendHeaders for the headers and WriteData 46 // Sends a basic 500 response using SendHeaders for the headers and WriteData
46 // for the body 47 // for the body
47 void SendErrorResponse(); 48 void SendErrorResponse();
48 49
49 void SendHeadersAndBody(const BalsaHeaders& response_headers, 50 void SendHeadersAndBody(scoped_refptr<HttpResponseHeaders> response_headers,
wtc 2014/06/25 22:22:24 Change this to const HttpResponseHeaders& respo
dmziegler 2014/06/26 01:23:29 Done.
50 base::StringPiece body); 51 base::StringPiece body);
51 52
52 BalsaHeaders headers_; 53 SpdyHeaderBlock headers_;
54 GURL request_url_;
wtc 2014/06/25 22:22:24 Nit: move request_url_ forward, so that we don't s
dmziegler 2014/06/26 01:23:29 Done.
53 string body_; 55 string body_;
54 56
55 // Buffer into which response header data is read. 57 // Buffer into which response header data is read.
56 scoped_refptr<GrowableIOBuffer> read_buf_; 58 scoped_refptr<GrowableIOBuffer> read_buf_;
57 bool request_headers_received_; 59 bool request_headers_received_;
58 60
59 DISALLOW_COPY_AND_ASSIGN(QuicSpdyServerStream); 61 DISALLOW_COPY_AND_ASSIGN(QuicSpdyServerStream);
60 }; 62 };
61 63
62 } // namespace net 64 } // namespace net
63 65
64 #endif // NET_QUIC_QUIC_SPDY_SERVER_STREAM_H_ 66 #endif // NET_QUIC_QUIC_SPDY_SERVER_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698