| 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 1274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1285 ~AckListenerWrapper(); | 1285 ~AckListenerWrapper(); |
| 1286 | 1286 |
| 1287 scoped_refptr<QuicAckListenerInterface> ack_listener; | 1287 scoped_refptr<QuicAckListenerInterface> ack_listener; |
| 1288 QuicPacketLength length; | 1288 QuicPacketLength length; |
| 1289 }; | 1289 }; |
| 1290 | 1290 |
| 1291 struct NET_EXPORT_PRIVATE SerializedPacket { | 1291 struct NET_EXPORT_PRIVATE SerializedPacket { |
| 1292 SerializedPacket(QuicPathId path_id, | 1292 SerializedPacket(QuicPathId path_id, |
| 1293 QuicPacketNumber packet_number, | 1293 QuicPacketNumber packet_number, |
| 1294 QuicPacketNumberLength packet_number_length, | 1294 QuicPacketNumberLength packet_number_length, |
| 1295 QuicEncryptedPacket* packet, | 1295 const char* encrypted_buffer, |
| 1296 QuicPacketLength encrypted_length, |
| 1296 QuicPacketEntropyHash entropy_hash, | 1297 QuicPacketEntropyHash entropy_hash, |
| 1297 bool has_ack, | 1298 bool has_ack, |
| 1298 bool has_stop_waiting); | 1299 bool has_stop_waiting); |
| 1299 ~SerializedPacket(); | 1300 ~SerializedPacket(); |
| 1300 | 1301 |
| 1301 QuicEncryptedPacket* packet; | 1302 // Not owned. |
| 1303 const char* encrypted_buffer; |
| 1304 QuicPacketLength encrypted_length; |
| 1302 QuicFrames retransmittable_frames; | 1305 QuicFrames retransmittable_frames; |
| 1303 IsHandshake has_crypto_handshake; | 1306 IsHandshake has_crypto_handshake; |
| 1304 bool needs_padding; | 1307 bool needs_padding; |
| 1305 QuicPathId path_id; | 1308 QuicPathId path_id; |
| 1306 QuicPacketNumber packet_number; | 1309 QuicPacketNumber packet_number; |
| 1307 QuicPacketNumberLength packet_number_length; | 1310 QuicPacketNumberLength packet_number_length; |
| 1308 EncryptionLevel encryption_level; | 1311 EncryptionLevel encryption_level; |
| 1309 QuicPacketEntropyHash entropy_hash; | 1312 QuicPacketEntropyHash entropy_hash; |
| 1310 bool is_fec_packet; | 1313 bool is_fec_packet; |
| 1311 bool has_ack; | 1314 bool has_ack; |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1397 : iov(iov), iov_count(iov_count), total_length(total_length) {} | 1400 : iov(iov), iov_count(iov_count), total_length(total_length) {} |
| 1398 | 1401 |
| 1399 const struct iovec* iov; | 1402 const struct iovec* iov; |
| 1400 const int iov_count; | 1403 const int iov_count; |
| 1401 const size_t total_length; | 1404 const size_t total_length; |
| 1402 }; | 1405 }; |
| 1403 | 1406 |
| 1404 } // namespace net | 1407 } // namespace net |
| 1405 | 1408 |
| 1406 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1409 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
| OLD | NEW |