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

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

Issue 47283002: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compilation error Created 7 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_utils_test.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 10 matching lines...) Expand all
21 namespace net { 21 namespace net {
22 22
23 namespace test { 23 namespace test {
24 class ReliableQuicStreamPeer; 24 class ReliableQuicStreamPeer;
25 } // namespace test 25 } // namespace test
26 26
27 class IPEndPoint; 27 class IPEndPoint;
28 class QuicSession; 28 class QuicSession;
29 class SSLInfo; 29 class SSLInfo;
30 30
31 #define ENDPOINT (is_server_ ? "Server: " : " Client: ")
32
31 // All this does right now is send data to subclasses via the sequencer. 33 // All this does right now is send data to subclasses via the sequencer.
32 class NET_EXPORT_PRIVATE ReliableQuicStream : public 34 class NET_EXPORT_PRIVATE ReliableQuicStream : public
33 QuicSpdyDecompressor::Visitor { 35 QuicSpdyDecompressor::Visitor {
34 public: 36 public:
35 // Visitor receives callbacks from the stream. 37 // Visitor receives callbacks from the stream.
36 class Visitor { 38 class Visitor {
37 public: 39 public:
38 Visitor() {} 40 Visitor() {}
39 41
40 // Called when the stream is closed. 42 // Called when the stream is closed.
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 219
218 // True if the read side is closed and further frames should be rejected. 220 // True if the read side is closed and further frames should be rejected.
219 bool read_side_closed_; 221 bool read_side_closed_;
220 // True if the write side is closed, and further writes should fail. 222 // True if the write side is closed, and further writes should fail.
221 bool write_side_closed_; 223 bool write_side_closed_;
222 224
223 // True if the priority has been read, false otherwise. 225 // True if the priority has been read, false otherwise.
224 bool priority_parsed_; 226 bool priority_parsed_;
225 bool fin_buffered_; 227 bool fin_buffered_;
226 bool fin_sent_; 228 bool fin_sent_;
229
230 // True if the session this stream is running under is a server session.
231 bool is_server_;
227 }; 232 };
228 233
229 } // namespace net 234 } // namespace net
230 235
231 #endif // NET_QUIC_RELIABLE_QUIC_STREAM_H_ 236 #endif // NET_QUIC_RELIABLE_QUIC_STREAM_H_
OLDNEW
« no previous file with comments | « net/quic/quic_utils_test.cc ('k') | net/quic/reliable_quic_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698