OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // The base class for streams which deliver data to/from an application. | 5 // The base class for streams which deliver data to/from an application. |
6 // In each direction, the data on such a stream first contains compressed | 6 // In each direction, the data on such a stream first contains compressed |
7 // headers then body data. | 7 // headers then body data. |
8 | 8 |
9 #ifndef NET_QUIC_QUIC_SPDY_STREAM_H_ | 9 #ifndef NET_QUIC_QUIC_SPDY_STREAM_H_ |
10 #define NET_QUIC_QUIC_SPDY_STREAM_H_ | 10 #define NET_QUIC_QUIC_SPDY_STREAM_H_ |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 private: | 50 private: |
51 DISALLOW_COPY_AND_ASSIGN(Visitor); | 51 DISALLOW_COPY_AND_ASSIGN(Visitor); |
52 }; | 52 }; |
53 | 53 |
54 QuicSpdyStream(QuicStreamId id, QuicSpdySession* spdy_session); | 54 QuicSpdyStream(QuicStreamId id, QuicSpdySession* spdy_session); |
55 ~QuicSpdyStream() override; | 55 ~QuicSpdyStream() override; |
56 | 56 |
57 // Override the base class to send QUIC_STREAM_NO_ERROR to the peer | 57 // Override the base class to send QUIC_STREAM_NO_ERROR to the peer |
58 // when the stream has not received all the data. | 58 // when the stream has not received all the data. |
59 void CloseWriteSide() override; | 59 void CloseWriteSide() override; |
| 60 void StopReading() override; |
60 | 61 |
61 // ReliableQuicStream implementation | 62 // ReliableQuicStream implementation |
62 void OnClose() override; | 63 void OnClose() override; |
63 | 64 |
64 // By default, this is the same as priority(), however it allows streams | 65 // By default, this is the same as priority(), however it allows streams |
65 // to temporarily alter effective priority. For example if a SPDY stream has | 66 // to temporarily alter effective priority. For example if a SPDY stream has |
66 // compressed but not written headers it can write the headers with a higher | 67 // compressed but not written headers it can write the headers with a higher |
67 // priority. | 68 // priority. |
68 QuicPriority EffectivePriority() const override; | 69 QuicPriority EffectivePriority() const override; |
69 | 70 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 // Contains a copy of the decompressed headers until they are consumed | 140 // Contains a copy of the decompressed headers until they are consumed |
140 // via ProcessData or Readv. | 141 // via ProcessData or Readv. |
141 std::string decompressed_headers_; | 142 std::string decompressed_headers_; |
142 | 143 |
143 DISALLOW_COPY_AND_ASSIGN(QuicSpdyStream); | 144 DISALLOW_COPY_AND_ASSIGN(QuicSpdyStream); |
144 }; | 145 }; |
145 | 146 |
146 } // namespace net | 147 } // namespace net |
147 | 148 |
148 #endif // NET_QUIC_QUIC_SPDY_STREAM_H_ | 149 #endif // NET_QUIC_QUIC_SPDY_STREAM_H_ |
OLD | NEW |