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

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

Issue 126283002: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed extra space Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « net/tools/quic/quic_spdy_client_stream.h ('k') | net/tools/quic/quic_time_wait_list_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_TOOLS_QUIC_QUIC_SPDY_SERVER_STREAM_H_ 5 #ifndef NET_TOOLS_QUIC_QUIC_SPDY_SERVER_STREAM_H_
6 #define NET_TOOLS_QUIC_QUIC_SPDY_SERVER_STREAM_H_ 6 #define NET_TOOLS_QUIC_QUIC_SPDY_SERVER_STREAM_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "net/base/io_buffer.h" 10 #include "net/base/io_buffer.h"
11 #include "net/quic/quic_data_stream.h" 11 #include "net/quic/quic_data_stream.h"
12 #include "net/quic/quic_protocol.h" 12 #include "net/quic/quic_protocol.h"
13 #include "net/tools/balsa/balsa_headers.h" 13 #include "net/tools/balsa/balsa_headers.h"
14 14
15 namespace net { 15 namespace net {
16 16
17 class QuicSession; 17 class QuicSession;
18 18
19 namespace tools { 19 namespace tools {
20 20
21 namespace test { 21 namespace test {
22 class QuicSpdyServerStreamPeer; 22 class QuicSpdyServerStreamPeer;
23 } // namespace test 23 } // namespace test
24 24
25 // 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
26 // response. 26 // response.
27 class QuicSpdyServerStream : public QuicDataStream { 27 class QuicSpdyServerStream : public QuicDataStream {
28 public: 28 public:
29 QuicSpdyServerStream(QuicStreamId id, QuicSession* session); 29 QuicSpdyServerStream(QuicStreamId id, QuicSession* session);
30 virtual ~QuicSpdyServerStream(); 30 virtual ~QuicSpdyServerStream() OVERRIDE;
31 31
32 // ReliableQuicStream implementation called by the session when there's 32 // ReliableQuicStream implementation called by the session when there's
33 // data for us. 33 // data for us.
34 virtual uint32 ProcessData(const char* data, uint32 data_len) OVERRIDE; 34 virtual uint32 ProcessData(const char* data, uint32 data_len) OVERRIDE;
35 virtual void OnFinRead() OVERRIDE; 35 virtual void OnFinRead() OVERRIDE;
36 36
37 int ParseRequestHeaders(); 37 int ParseRequestHeaders();
38 38
39 private: 39 private:
40 friend class test::QuicSpdyServerStreamPeer; 40 friend class test::QuicSpdyServerStreamPeer;
(...skipping 14 matching lines...) Expand all
55 55
56 // Buffer into which response header data is read. 56 // Buffer into which response header data is read.
57 scoped_refptr<GrowableIOBuffer> read_buf_; 57 scoped_refptr<GrowableIOBuffer> read_buf_;
58 bool request_headers_received_; 58 bool request_headers_received_;
59 }; 59 };
60 60
61 } // namespace tools 61 } // namespace tools
62 } // namespace net 62 } // namespace net
63 63
64 #endif // NET_TOOLS_QUIC_QUIC_SPDY_SERVER_STREAM_H_ 64 #endif // NET_TOOLS_QUIC_QUIC_SPDY_SERVER_STREAM_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_spdy_client_stream.h ('k') | net/tools/quic/quic_time_wait_list_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698