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

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

Issue 15937012: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Small bug fixes Created 7 years, 6 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
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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 virtual bool OnDecompressedData(base::StringPiece data) OVERRIDE; 79 virtual bool OnDecompressedData(base::StringPiece data) OVERRIDE;
80 virtual void OnDecompressionError() OVERRIDE; 80 virtual void OnDecompressionError() OVERRIDE;
81 81
82 // Called to close the stream from this end. 82 // Called to close the stream from this end.
83 virtual void Close(QuicRstStreamErrorCode error); 83 virtual void Close(QuicRstStreamErrorCode error);
84 84
85 // This block of functions wraps the sequencer's functions of the same 85 // This block of functions wraps the sequencer's functions of the same
86 // name. These methods return uncompressed data until that has 86 // name. These methods return uncompressed data until that has
87 // been fully processed. Then they simply delegate to the sequencer. 87 // been fully processed. Then they simply delegate to the sequencer.
88 virtual int Readv(const struct iovec* iov, int iov_len); 88 virtual int Readv(const struct iovec* iov, size_t iov_len);
89 virtual int GetReadableRegions(iovec* iov, int iov_len); 89 virtual int GetReadableRegions(iovec* iov, size_t iov_len);
90 virtual bool IsHalfClosed() const; 90 virtual bool IsHalfClosed() const;
91 virtual bool IsClosed() const; 91 virtual bool IsClosed() const;
92 virtual bool HasBytesToRead() const; 92 virtual bool HasBytesToRead() const;
93 93
94 // Called by the session when a decompression blocked stream 94 // Called by the session when a decompression blocked stream
95 // becomes unblocked. 95 // becomes unblocked.
96 virtual void OnDecompressorAvailable(); 96 virtual void OnDecompressorAvailable();
97 97
98 QuicStreamId id() const { return id_; } 98 QuicStreamId id() const { return id_; }
99 99
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 // True if the write side is closed, and further writes should fail. 183 // True if the write side is closed, and further writes should fail.
184 bool write_side_closed_; 184 bool write_side_closed_;
185 185
186 bool fin_buffered_; 186 bool fin_buffered_;
187 bool fin_sent_; 187 bool fin_sent_;
188 }; 188 };
189 189
190 } // namespace net 190 } // namespace net
191 191
192 #endif // NET_QUIC_RELIABLE_QUIC_STREAM_H_ 192 #endif // NET_QUIC_RELIABLE_QUIC_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698