| 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 <map> | 10 #include <map> |
| (...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 QuicPacketSequenceNumber least_unacked); | 482 QuicPacketSequenceNumber least_unacked); |
| 483 | 483 |
| 484 NET_EXPORT_PRIVATE friend std::ostream& operator<<( | 484 NET_EXPORT_PRIVATE friend std::ostream& operator<<( |
| 485 std::ostream& os, const QuicAckFrame& s); | 485 std::ostream& os, const QuicAckFrame& s); |
| 486 | 486 |
| 487 SentPacketInfo sent_info; | 487 SentPacketInfo sent_info; |
| 488 ReceivedPacketInfo received_info; | 488 ReceivedPacketInfo received_info; |
| 489 }; | 489 }; |
| 490 | 490 |
| 491 // Defines for all types of congestion feedback that will be negotiated in QUIC, | 491 // Defines for all types of congestion feedback that will be negotiated in QUIC, |
| 492 // kTCP MUST be supported by all QUIC implementations to guarentee 100% | 492 // kTCP MUST be supported by all QUIC implementations to guarantee 100% |
| 493 // compatibility. | 493 // compatibility. |
| 494 enum CongestionFeedbackType { | 494 enum CongestionFeedbackType { |
| 495 kTCP, // Used to mimic TCP. | 495 kTCP, // Used to mimic TCP. |
| 496 kInterArrival, // Use additional inter arrival information. | 496 kInterArrival, // Use additional inter arrival information. |
| 497 kFixRate, // Provided for testing. | 497 kFixRate, // Provided for testing. |
| 498 }; | 498 }; |
| 499 | 499 |
| 500 struct NET_EXPORT_PRIVATE CongestionFeedbackMessageTCP { | 500 struct NET_EXPORT_PRIVATE CongestionFeedbackMessageTCP { |
| 501 uint16 accumulated_number_of_lost_packets; | 501 uint16 accumulated_number_of_lost_packets; |
| 502 QuicByteCount receive_window; | 502 QuicByteCount receive_window; |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 796 NET_EXPORT_PRIVATE friend std::ostream& operator<<( | 796 NET_EXPORT_PRIVATE friend std::ostream& operator<<( |
| 797 std::ostream& os, const QuicConsumedData& s); | 797 std::ostream& os, const QuicConsumedData& s); |
| 798 | 798 |
| 799 size_t bytes_consumed; | 799 size_t bytes_consumed; |
| 800 bool fin_consumed; | 800 bool fin_consumed; |
| 801 }; | 801 }; |
| 802 | 802 |
| 803 } // namespace net | 803 } // namespace net |
| 804 | 804 |
| 805 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 805 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
| OLD | NEW |