OLD | NEW |
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 #ifndef NET_QUIC_QUIC_PROTOCOL_H_ | 5 #ifndef NET_QUIC_QUIC_PROTOCOL_H_ |
6 #define NET_QUIC_QUIC_PROTOCOL_H_ | 6 #define NET_QUIC_QUIC_PROTOCOL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <limits> | 9 #include <limits> |
10 #include <list> | 10 #include <list> |
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
655 std::ostream& os, const QuicStreamFrame& s); | 655 std::ostream& os, const QuicStreamFrame& s); |
656 | 656 |
657 // Returns a copy of the IOVector |data| as a heap-allocated string. | 657 // Returns a copy of the IOVector |data| as a heap-allocated string. |
658 // Caller must take ownership of the returned string. | 658 // Caller must take ownership of the returned string. |
659 std::string* GetDataAsString() const; | 659 std::string* GetDataAsString() const; |
660 | 660 |
661 QuicStreamId stream_id; | 661 QuicStreamId stream_id; |
662 bool fin; | 662 bool fin; |
663 QuicStreamOffset offset; // Location of this data in the stream. | 663 QuicStreamOffset offset; // Location of this data in the stream. |
664 IOVector data; | 664 IOVector data; |
665 | |
666 // TODO(rjshade): Remove with FLAGS_quic_attach_ack_notifiers_to_packets. | |
667 // If this is set, then when this packet is ACKed the AckNotifier will be | |
668 // informed. | |
669 QuicAckNotifier* notifier; | |
670 }; | 665 }; |
671 | 666 |
672 // TODO(ianswett): Re-evaluate the trade-offs of hash_set vs set when framing | 667 // TODO(ianswett): Re-evaluate the trade-offs of hash_set vs set when framing |
673 // is finalized. | 668 // is finalized. |
674 typedef std::set<QuicPacketSequenceNumber> SequenceNumberSet; | 669 typedef std::set<QuicPacketSequenceNumber> SequenceNumberSet; |
675 typedef std::list<QuicPacketSequenceNumber> SequenceNumberList; | 670 typedef std::list<QuicPacketSequenceNumber> SequenceNumberList; |
676 | 671 |
677 typedef std::list< | 672 typedef std::list< |
678 std::pair<QuicPacketSequenceNumber, QuicTime> > PacketTimeList; | 673 std::pair<QuicPacketSequenceNumber, QuicTime> > PacketTimeList; |
679 | 674 |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1040 bool in_flight; | 1035 bool in_flight; |
1041 // True if the packet can never be acked, so it can be removed. | 1036 // True if the packet can never be acked, so it can be removed. |
1042 bool is_unackable; | 1037 bool is_unackable; |
1043 // True if the packet is an FEC packet. | 1038 // True if the packet is an FEC packet. |
1044 bool is_fec_packet; | 1039 bool is_fec_packet; |
1045 }; | 1040 }; |
1046 | 1041 |
1047 } // namespace net | 1042 } // namespace net |
1048 | 1043 |
1049 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1044 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
OLD | NEW |