OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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_BASE_H_ | 5 #ifndef NET_TOOLS_QUIC_QUIC_SPDY_SERVER_STREAM_BASE_H_ |
6 #define NET_TOOLS_QUIC_QUIC_SPDY_SERVER_STREAM_BASE_H_ | 6 #define NET_TOOLS_QUIC_QUIC_SPDY_SERVER_STREAM_BASE_H_ |
7 | 7 |
8 #include "net/quic/core/quic_spdy_stream.h" | 8 #include "net/quic/core/quic_spdy_stream.h" |
9 | 9 |
10 namespace net { | 10 namespace net { |
11 | 11 |
12 class QuicSpdyServerStreamBase : public QuicSpdyStream { | 12 class QuicSpdyServerStreamBase : public QuicSpdyStream { |
13 public: | 13 public: |
14 QuicSpdyServerStreamBase(QuicStreamId id, QuicSpdySession* session); | 14 QuicSpdyServerStreamBase(QuicStreamId id, QuicSpdySession* session); |
15 | 15 |
16 // Override the base class to send QUIC_STREAM_NO_ERROR to the peer | 16 // Override the base class to send QUIC_STREAM_NO_ERROR to the peer |
17 // when the stream has not received all the data. | 17 // when the stream has not received all the data. |
18 void CloseWriteSide() override; | 18 void CloseWriteSide() override; |
| 19 void StopReading() override; |
19 | 20 |
20 private: | 21 private: |
21 DISALLOW_COPY_AND_ASSIGN(QuicSpdyServerStreamBase); | 22 DISALLOW_COPY_AND_ASSIGN(QuicSpdyServerStreamBase); |
22 }; | 23 }; |
23 | 24 |
24 } // namespace net | 25 } // namespace net |
25 | 26 |
26 #endif // NET_TOOLS_QUIC_QUIC_SPDY_SERVER_STREAM_BASE_H_ | 27 #endif // NET_TOOLS_QUIC_QUIC_SPDY_SERVER_STREAM_BASE_H_ |
OLD | NEW |