| 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 #include "net/quic/quic_protocol.h" | 5 #include "net/quic/quic_protocol.h" |
| 6 | 6 |
| 7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
| 8 #include "net/quic/quic_flags.h" | 8 #include "net/quic/quic_flags.h" |
| 9 #include "net/quic/quic_utils.h" | 9 #include "net/quic/quic_utils.h" |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 } | 36 } |
| 37 | 37 |
| 38 size_t GetStartOfEncryptedData(const QuicPacketHeader& header) { | 38 size_t GetStartOfEncryptedData(const QuicPacketHeader& header) { |
| 39 return GetPacketHeaderSize(header) - kPrivateFlagsSize; | 39 return GetPacketHeaderSize(header) - kPrivateFlagsSize; |
| 40 } | 40 } |
| 41 | 41 |
| 42 size_t GetStartOfEncryptedData(QuicConnectionIdLength connection_id_length, | 42 size_t GetStartOfEncryptedData(QuicConnectionIdLength connection_id_length, |
| 43 bool include_version, | 43 bool include_version, |
| 44 bool include_path_id, | 44 bool include_path_id, |
| 45 QuicPacketNumberLength packet_number_length) { | 45 QuicPacketNumberLength packet_number_length) { |
| 46 // Don't include the fec size, since encryption starts before private flags. | 46 // Encryption starts before private flags. |
| 47 return GetPacketHeaderSize(connection_id_length, include_version, | 47 return GetPacketHeaderSize(connection_id_length, include_version, |
| 48 include_path_id, packet_number_length) - | 48 include_path_id, packet_number_length) - |
| 49 kPrivateFlagsSize; | 49 kPrivateFlagsSize; |
| 50 } | 50 } |
| 51 | 51 |
| 52 QuicPacketPublicHeader::QuicPacketPublicHeader() | 52 QuicPacketPublicHeader::QuicPacketPublicHeader() |
| 53 : connection_id(0), | 53 : connection_id(0), |
| 54 connection_id_length(PACKET_8BYTE_CONNECTION_ID), | 54 connection_id_length(PACKET_8BYTE_CONNECTION_ID), |
| 55 multipath_flag(false), | 55 multipath_flag(false), |
| 56 reset_flag(false), | 56 reset_flag(false), |
| (...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 784 is_unackable(false), | 784 is_unackable(false), |
| 785 has_crypto_handshake(has_crypto_handshake), | 785 has_crypto_handshake(has_crypto_handshake), |
| 786 needs_padding(needs_padding), | 786 needs_padding(needs_padding), |
| 787 retransmission(0) {} | 787 retransmission(0) {} |
| 788 | 788 |
| 789 TransmissionInfo::TransmissionInfo(const TransmissionInfo& other) = default; | 789 TransmissionInfo::TransmissionInfo(const TransmissionInfo& other) = default; |
| 790 | 790 |
| 791 TransmissionInfo::~TransmissionInfo() {} | 791 TransmissionInfo::~TransmissionInfo() {} |
| 792 | 792 |
| 793 } // namespace net | 793 } // namespace net |
| OLD | NEW |