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

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

Issue 420313005: Land Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final_0723
Patch Set: change QUIC packet size to 1350 Created 6 years, 4 months 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 client/server reliable streams. 5 // The base class for client/server reliable streams.
6 6
7 #ifndef NET_QUIC_RELIABLE_QUIC_STREAM_H_ 7 #ifndef NET_QUIC_RELIABLE_QUIC_STREAM_H_
8 #define NET_QUIC_RELIABLE_QUIC_STREAM_H_ 8 #define NET_QUIC_RELIABLE_QUIC_STREAM_H_
9 9
10 #include <sys/types.h> 10 #include <sys/types.h>
(...skipping 20 matching lines...) Expand all
31 class QuicSession; 31 class QuicSession;
32 32
33 class NET_EXPORT_PRIVATE ReliableQuicStream { 33 class NET_EXPORT_PRIVATE ReliableQuicStream {
34 public: 34 public:
35 ReliableQuicStream(QuicStreamId id, 35 ReliableQuicStream(QuicStreamId id,
36 QuicSession* session); 36 QuicSession* session);
37 37
38 virtual ~ReliableQuicStream(); 38 virtual ~ReliableQuicStream();
39 39
40 // Called when a (potentially duplicate) stream frame has been received 40 // Called when a (potentially duplicate) stream frame has been received
41 // for this stream. Returns false if this frame can not be accepted 41 // for this stream.
42 // because there is too much data already buffered. 42 virtual void OnStreamFrame(const QuicStreamFrame& frame);
43 virtual bool OnStreamFrame(const QuicStreamFrame& frame);
44 43
45 // Called when the connection becomes writeable to allow the stream 44 // Called when the connection becomes writeable to allow the stream
46 // to write any pending data. 45 // to write any pending data.
47 virtual void OnCanWrite(); 46 virtual void OnCanWrite();
48 47
49 // Called by the session just before the stream is deleted. 48 // Called by the session just before the stream is deleted.
50 virtual void OnClose(); 49 virtual void OnClose();
51 50
52 // Called when we get a stream reset from the peer. 51 // Called when we get a stream reset from the peer.
53 virtual void OnStreamReset(const QuicRstStreamFrame& frame); 52 virtual void OnStreamReset(const QuicRstStreamFrame& frame);
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 // connection level flow control limits (but are stream level flow control 243 // connection level flow control limits (but are stream level flow control
245 // limited). 244 // limited).
246 bool stream_contributes_to_connection_flow_control_; 245 bool stream_contributes_to_connection_flow_control_;
247 246
248 DISALLOW_COPY_AND_ASSIGN(ReliableQuicStream); 247 DISALLOW_COPY_AND_ASSIGN(ReliableQuicStream);
249 }; 248 };
250 249
251 } // namespace net 250 } // namespace net
252 251
253 #endif // NET_QUIC_RELIABLE_QUIC_STREAM_H_ 252 #endif // NET_QUIC_RELIABLE_QUIC_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698