| 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 <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 1385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1396 // 0: no padding | 1396 // 0: no padding |
| 1397 // otherwise: only pad up to num_padding_bytes bytes | 1397 // otherwise: only pad up to num_padding_bytes bytes |
| 1398 int num_padding_bytes; | 1398 int num_padding_bytes; |
| 1399 QuicPathId path_id; | 1399 QuicPathId path_id; |
| 1400 QuicPacketNumber packet_number; | 1400 QuicPacketNumber packet_number; |
| 1401 QuicPacketNumberLength packet_number_length; | 1401 QuicPacketNumberLength packet_number_length; |
| 1402 EncryptionLevel encryption_level; | 1402 EncryptionLevel encryption_level; |
| 1403 QuicPacketEntropyHash entropy_hash; | 1403 QuicPacketEntropyHash entropy_hash; |
| 1404 bool has_ack; | 1404 bool has_ack; |
| 1405 bool has_stop_waiting; | 1405 bool has_stop_waiting; |
| 1406 QuicPathId original_path_id; |
| 1406 QuicPacketNumber original_packet_number; | 1407 QuicPacketNumber original_packet_number; |
| 1407 TransmissionType transmission_type; | 1408 TransmissionType transmission_type; |
| 1408 | 1409 |
| 1409 // Optional notifiers which will be informed when this packet has been ACKed. | 1410 // Optional notifiers which will be informed when this packet has been ACKed. |
| 1410 std::list<AckListenerWrapper> listeners; | 1411 std::list<AckListenerWrapper> listeners; |
| 1411 }; | 1412 }; |
| 1412 | 1413 |
| 1413 struct NET_EXPORT_PRIVATE TransmissionInfo { | 1414 struct NET_EXPORT_PRIVATE TransmissionInfo { |
| 1414 // Used by STL when assigning into a map. | 1415 // Used by STL when assigning into a map. |
| 1415 TransmissionInfo(); | 1416 TransmissionInfo(); |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1487 : iov(iov), iov_count(iov_count), total_length(total_length) {} | 1488 : iov(iov), iov_count(iov_count), total_length(total_length) {} |
| 1488 | 1489 |
| 1489 const struct iovec* iov; | 1490 const struct iovec* iov; |
| 1490 const int iov_count; | 1491 const int iov_count; |
| 1491 const size_t total_length; | 1492 const size_t total_length; |
| 1492 }; | 1493 }; |
| 1493 | 1494 |
| 1494 } // namespace net | 1495 } // namespace net |
| 1495 | 1496 |
| 1496 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1497 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
| OLD | NEW |