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 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1030 RetransmittableFrames* retransmittable_frames; | 1030 RetransmittableFrames* retransmittable_frames; |
1031 QuicSequenceNumberLength sequence_number_length; | 1031 QuicSequenceNumberLength sequence_number_length; |
1032 // Zero when the packet is serialized, non-zero once it's sent. | 1032 // Zero when the packet is serialized, non-zero once it's sent. |
1033 QuicTime sent_time; | 1033 QuicTime sent_time; |
1034 // Zero when the packet is serialized, non-zero once it's sent. | 1034 // Zero when the packet is serialized, non-zero once it's sent. |
1035 QuicByteCount bytes_sent; | 1035 QuicByteCount bytes_sent; |
1036 size_t nack_count; | 1036 size_t nack_count; |
1037 // Stores the sequence numbers of all transmissions of this packet. | 1037 // Stores the sequence numbers of all transmissions of this packet. |
1038 // Can never be null. | 1038 // Can never be null. |
1039 SequenceNumberSet* all_transmissions; | 1039 SequenceNumberSet* all_transmissions; |
1040 // Pending packets have not been abandoned or lost. | 1040 // In flight packets have not been abandoned or lost. |
1041 bool pending; | 1041 bool in_flight; |
1042 }; | 1042 }; |
1043 | 1043 |
1044 // A struct for functions which consume data payloads and fins. | 1044 // A struct for functions which consume data payloads and fins. |
1045 struct NET_EXPORT_PRIVATE QuicConsumedData { | 1045 struct NET_EXPORT_PRIVATE QuicConsumedData { |
1046 QuicConsumedData(size_t bytes_consumed, bool fin_consumed); | 1046 QuicConsumedData(size_t bytes_consumed, bool fin_consumed); |
1047 | 1047 |
1048 // By default, gtest prints the raw bytes of an object. The bool data | 1048 // By default, gtest prints the raw bytes of an object. The bool data |
1049 // member causes this object to have padding bytes, which causes the | 1049 // member causes this object to have padding bytes, which causes the |
1050 // default gtest object printer to read uninitialize memory. So we need | 1050 // default gtest object printer to read uninitialize memory. So we need |
1051 // to teach gtest how to print this object. | 1051 // to teach gtest how to print this object. |
(...skipping 22 matching lines...) Expand all Loading... |
1074 WriteStatus status; | 1074 WriteStatus status; |
1075 union { | 1075 union { |
1076 int bytes_written; // only valid when status is OK | 1076 int bytes_written; // only valid when status is OK |
1077 int error_code; // only valid when status is ERROR | 1077 int error_code; // only valid when status is ERROR |
1078 }; | 1078 }; |
1079 }; | 1079 }; |
1080 | 1080 |
1081 } // namespace net | 1081 } // namespace net |
1082 | 1082 |
1083 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1083 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
OLD | NEW |