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

Side by Side Diff: net/quic/quic_spdy_stream.h

Issue 1433063002: Override ReliableQuicStream::StopReading() to send RST_STREAM+NO_ERROR if CloseWriteSide() is calle… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@106978852
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « no previous file | net/quic/quic_spdy_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 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
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
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_
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_spdy_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698