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

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

Issue 11364068: Add a QuicHttpStream class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make GetPeerAddress const Created 8 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
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 "net/quic/quic_stream_sequencer.h" 10 #include "net/quic/quic_stream_sequencer.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 bool write_side_closed() const { return write_side_closed_; } 56 bool write_side_closed() const { return write_side_closed_; }
57 57
58 protected: 58 protected:
59 virtual int WriteData(base::StringPiece data, bool fin); 59 virtual int WriteData(base::StringPiece data, bool fin);
60 // Close the read side of the socket. Further frames will not be accepted. 60 // Close the read side of the socket. Further frames will not be accepted.
61 virtual void CloseReadSide(); 61 virtual void CloseReadSide();
62 // Close the write side of the socket. Further writes will fail. 62 // Close the write side of the socket. Further writes will fail.
63 void CloseWriteSide(); 63 void CloseWriteSide();
64 64
65 QuicSession* session() { return session_; } 65 QuicSession* session() { return session_; }
66 const QuicSession* session() const { return session_; }
66 67
67 private: 68 private:
68 friend class ReliableQuicStreamPeer; 69 friend class ReliableQuicStreamPeer;
69 70
70 QuicStreamSequencer sequencer_; 71 QuicStreamSequencer sequencer_;
71 QuicStreamId id_; 72 QuicStreamId id_;
72 QuicStreamOffset offset_; 73 QuicStreamOffset offset_;
73 QuicSession* session_; 74 QuicSession* session_;
74 QuicErrorCode error_; 75 QuicErrorCode error_;
75 // True if the read side is closed and further frames should be rejected. 76 // True if the read side is closed and further frames should be rejected.
76 bool read_side_closed_; 77 bool read_side_closed_;
77 // True if the write side is closed, and further writes should fail. 78 // True if the write side is closed, and further writes should fail.
78 bool write_side_closed_; 79 bool write_side_closed_;
79 }; 80 };
80 81
81 } // namespace net 82 } // namespace net
82 83
83 #endif // NET_QUIC_RELIABLE_QUIC_STREAM_H_ 84 #endif // NET_QUIC_RELIABLE_QUIC_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698