Windows should animate when they are about to get docked at screen edges.
[chromium-blink-merge.git] / net / tools / quic / quic_spdy_server_stream.h
blob8ed2a8f3d6589526646415ffd756a2d46e3c3e60
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
3 // found in the LICENSE file.
5 #ifndef NET_TOOLS_QUIC_QUIC_SPDY_SERVER_STREAM_H_
6 #define NET_TOOLS_QUIC_QUIC_SPDY_SERVER_STREAM_H_
8 #include <string>
10 #include "net/base/io_buffer.h"
11 #include "net/tools/quic/quic_reliable_server_stream.h"
13 namespace net {
15 class QuicSession;
17 namespace tools {
19 // All this does right now is aggregate data, and on fin, send a cached
20 // response.
21 class QuicSpdyServerStream : public QuicReliableServerStream {
22 public:
23 QuicSpdyServerStream(QuicStreamId id, QuicSession* session);
24 virtual ~QuicSpdyServerStream();
26 // ReliableQuicStream implementation called by the session when there's
27 // data for us.
28 virtual uint32 ProcessData(const char* data, uint32 data_len) OVERRIDE;
30 virtual void SendHeaders(const BalsaHeaders& response_headers) OVERRIDE;
32 int ParseRequestHeaders();
34 protected:
35 virtual void TerminateFromPeer(bool half_close) OVERRIDE;
37 // Buffer into which response header data is read.
38 scoped_refptr<GrowableIOBuffer> read_buf_;
39 bool request_headers_received_;
42 } // namespace tools
43 } // namespace net
45 #endif // NET_TOOLS_QUIC_QUIC_SPDY_SERVER_STREAM_H_