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 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
640 // If this is set, then when this packet is ACKed the AckNotifier will be | 640 // If this is set, then when this packet is ACKed the AckNotifier will be |
641 // informed. | 641 // informed. |
642 QuicAckNotifier* notifier; | 642 QuicAckNotifier* notifier; |
643 }; | 643 }; |
644 | 644 |
645 // TODO(ianswett): Re-evaluate the trade-offs of hash_set vs set when framing | 645 // TODO(ianswett): Re-evaluate the trade-offs of hash_set vs set when framing |
646 // is finalized. | 646 // is finalized. |
647 typedef std::set<QuicPacketSequenceNumber> SequenceNumberSet; | 647 typedef std::set<QuicPacketSequenceNumber> SequenceNumberSet; |
648 typedef std::list<QuicPacketSequenceNumber> SequenceNumberList; | 648 typedef std::list<QuicPacketSequenceNumber> SequenceNumberList; |
649 | 649 |
650 typedef std::list<std::pair<QuicPacketSequenceNumber, QuicTime>> PacketTimeList; | 650 typedef std::list<std::pair<QuicPacketSequenceNumber, QuicTime> > PacketTimeList ; |
Ryan Hamilton
2014/09/09 21:26:36
nit: this line appears to be too long. I think you
Mostyn Bramley-Moore
2014/09/09 21:33:10
Done.
| |
651 | 651 |
652 struct NET_EXPORT_PRIVATE QuicStopWaitingFrame { | 652 struct NET_EXPORT_PRIVATE QuicStopWaitingFrame { |
653 QuicStopWaitingFrame(); | 653 QuicStopWaitingFrame(); |
654 ~QuicStopWaitingFrame(); | 654 ~QuicStopWaitingFrame(); |
655 | 655 |
656 NET_EXPORT_PRIVATE friend std::ostream& operator<<( | 656 NET_EXPORT_PRIVATE friend std::ostream& operator<<( |
657 std::ostream& os, const QuicStopWaitingFrame& s); | 657 std::ostream& os, const QuicStopWaitingFrame& s); |
658 // Entropy hash of all packets up to, but not including, the least unacked | 658 // Entropy hash of all packets up to, but not including, the least unacked |
659 // packet. | 659 // packet. |
660 QuicPacketEntropyHash entropy_hash; | 660 QuicPacketEntropyHash entropy_hash; |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1073 // Stores the sequence numbers of all transmissions of this packet. | 1073 // Stores the sequence numbers of all transmissions of this packet. |
1074 // Can never be null. | 1074 // Can never be null. |
1075 SequenceNumberList* all_transmissions; | 1075 SequenceNumberList* all_transmissions; |
1076 // In flight packets have not been abandoned or lost. | 1076 // In flight packets have not been abandoned or lost. |
1077 bool in_flight; | 1077 bool in_flight; |
1078 }; | 1078 }; |
1079 | 1079 |
1080 } // namespace net | 1080 } // namespace net |
1081 | 1081 |
1082 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1082 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
OLD | NEW |