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

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

Issue 13741012: Moving net/tools/quic code to net::tools namspace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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.cc ('k') | net/tools/quic/quic_spdy_server_stream.cc » ('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/tools/quic/quic_reliable_server_stream.h" 11 #include "net/tools/quic/quic_reliable_server_stream.h"
12 12
13 namespace net { 13 namespace net {
14 14
15 class QuicSession;
16
17 namespace tools {
18
15 // All this does right now is aggregate data, and on fin, send a cached 19 // All this does right now is aggregate data, and on fin, send a cached
16 // response. 20 // response.
17 class QuicSession;
18
19 class QuicSpdyServerStream : public QuicReliableServerStream { 21 class QuicSpdyServerStream : public QuicReliableServerStream {
20 public: 22 public:
21 QuicSpdyServerStream(QuicStreamId id, QuicSession* session); 23 QuicSpdyServerStream(QuicStreamId id, QuicSession* session);
22 virtual ~QuicSpdyServerStream(); 24 virtual ~QuicSpdyServerStream();
23 25
24 // ReliableQuicStream implementation called by the session when there's 26 // ReliableQuicStream implementation called by the session when there's
25 // data for us. 27 // data for us.
26 virtual uint32 ProcessData(const char* data, uint32 data_len) OVERRIDE; 28 virtual uint32 ProcessData(const char* data, uint32 data_len) OVERRIDE;
27 29
28 virtual void SendHeaders(const BalsaHeaders& response_headers) OVERRIDE; 30 virtual void SendHeaders(const BalsaHeaders& response_headers) OVERRIDE;
29 31
30 int ParseRequestHeaders(); 32 int ParseRequestHeaders();
31 33
32 protected: 34 protected:
33 virtual void TerminateFromPeer(bool half_close) OVERRIDE; 35 virtual void TerminateFromPeer(bool half_close) OVERRIDE;
34 36
35 // Buffer into which response header data is read. 37 // Buffer into which response header data is read.
36 scoped_refptr<GrowableIOBuffer> read_buf_; 38 scoped_refptr<GrowableIOBuffer> read_buf_;
37 bool request_headers_received_; 39 bool request_headers_received_;
38 }; 40 };
39 41
42 } // namespace tools
40 } // namespace net 43 } // namespace net
41 44
42 #endif // NET_TOOLS_QUIC_QUIC_SPDY_SERVER_STREAM_H_ 45 #endif // NET_TOOLS_QUIC_QUIC_SPDY_SERVER_STREAM_H_
OLDNEW
« 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