| 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_CORE_QUIC_SPDY_STREAM_H_ | 9 #ifndef NET_QUIC_CORE_QUIC_SPDY_STREAM_H_ |
| 10 #define NET_QUIC_CORE_QUIC_SPDY_STREAM_H_ | 10 #define NET_QUIC_CORE_QUIC_SPDY_STREAM_H_ |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 protected: | 59 protected: |
| 60 virtual ~Visitor() {} | 60 virtual ~Visitor() {} |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 DISALLOW_COPY_AND_ASSIGN(Visitor); | 63 DISALLOW_COPY_AND_ASSIGN(Visitor); |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 QuicSpdyStream(QuicStreamId id, QuicSpdySession* spdy_session); | 66 QuicSpdyStream(QuicStreamId id, QuicSpdySession* spdy_session); |
| 67 ~QuicSpdyStream() override; | 67 ~QuicSpdyStream() override; |
| 68 | 68 |
| 69 void StopReading() override; | |
| 70 | |
| 71 // QuicStream implementation | 69 // QuicStream implementation |
| 72 void OnClose() override; | 70 void OnClose() override; |
| 73 | 71 |
| 74 // Override to maybe close the write side after writing. | 72 // Override to maybe close the write side after writing. |
| 75 void OnCanWrite() override; | 73 void OnCanWrite() override; |
| 76 | 74 |
| 77 // Called by the session when headers with a priority have been received | 75 // Called by the session when headers with a priority have been received |
| 78 // for this stream. This method will only be called for server streams. | 76 // for this stream. This method will only be called for server streams. |
| 79 virtual void OnStreamHeadersPriority(SpdyPriority priority); | 77 virtual void OnStreamHeadersPriority(SpdyPriority priority); |
| 80 | 78 |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 bool trailers_consumed_; | 231 bool trailers_consumed_; |
| 234 // The parsed trailers received from the peer. | 232 // The parsed trailers received from the peer. |
| 235 SpdyHeaderBlock received_trailers_; | 233 SpdyHeaderBlock received_trailers_; |
| 236 | 234 |
| 237 DISALLOW_COPY_AND_ASSIGN(QuicSpdyStream); | 235 DISALLOW_COPY_AND_ASSIGN(QuicSpdyStream); |
| 238 }; | 236 }; |
| 239 | 237 |
| 240 } // namespace net | 238 } // namespace net |
| 241 | 239 |
| 242 #endif // NET_QUIC_CORE_QUIC_SPDY_STREAM_H_ | 240 #endif // NET_QUIC_CORE_QUIC_SPDY_STREAM_H_ |
| OLD | NEW |