Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: net/quic/quic_protocol.cc

Issue 1785863002: Remove FEC related connection options and update FEC related comment in code base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@116555910
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/quic/quic_packet_creator.cc ('k') | net/quic/quic_sent_packet_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/quic/quic_packet_creator.cc ('k') | net/quic/quic_sent_packet_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698