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

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

Issue 14287009: Land Recent QUIC Changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with Tot Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_utils.cc ('k') | net/quic/reliable_quic_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 (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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 virtual void TerminateFromPeer(bool half_close); 66 virtual void TerminateFromPeer(bool half_close);
67 67
68 virtual uint32 ProcessData(const char* data, uint32 data_len) = 0; 68 virtual uint32 ProcessData(const char* data, uint32 data_len) = 0;
69 69
70 // Called to close the stream from this end. 70 // Called to close the stream from this end.
71 virtual void Close(QuicRstStreamErrorCode error); 71 virtual void Close(QuicRstStreamErrorCode error);
72 72
73 // This block of functions wraps the sequencer's functions of the same 73 // This block of functions wraps the sequencer's functions of the same
74 // name. 74 // name.
75 virtual bool IsHalfClosed() const; 75 virtual bool IsHalfClosed() const;
76 virtual bool IsClosed() const;
76 virtual bool HasBytesToRead() const; 77 virtual bool HasBytesToRead() const;
77 78
78 QuicStreamId id() const { return id_; } 79 QuicStreamId id() const { return id_; }
79 80
80 QuicRstStreamErrorCode stream_error() const { return stream_error_; } 81 QuicRstStreamErrorCode stream_error() const { return stream_error_; }
81 QuicErrorCode connection_error() const { return connection_error_; } 82 QuicErrorCode connection_error() const { return connection_error_; }
82 83
83 bool read_side_closed() const { return read_side_closed_; } 84 bool read_side_closed() const { return read_side_closed_; }
84 bool write_side_closed() const { return write_side_closed_; } 85 bool write_side_closed() const { return write_side_closed_; }
85 86
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 // True if the write side is closed, and further writes should fail. 150 // True if the write side is closed, and further writes should fail.
150 bool write_side_closed_; 151 bool write_side_closed_;
151 152
152 bool fin_buffered_; 153 bool fin_buffered_;
153 bool fin_sent_; 154 bool fin_sent_;
154 }; 155 };
155 156
156 } // namespace net 157 } // namespace net
157 158
158 #endif // NET_QUIC_RELIABLE_QUIC_STREAM_H_ 159 #endif // NET_QUIC_RELIABLE_QUIC_STREAM_H_
OLDNEW
« no previous file with comments | « net/quic/quic_utils.cc ('k') | net/quic/reliable_quic_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698