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

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

Issue 1413443005: Remove QuicFecGroup::MinProtectedPacket which is no longer needed. No behavior change expected. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@105506241
Patch Set: Created 5 years, 2 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_fec_group.h ('k') | net/quic/quic_fec_group_interface.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_fec_group.h" 5 #include "net/quic/quic_fec_group.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 } 175 }
176 return static_cast<QuicPacketCount>( 176 return static_cast<QuicPacketCount>(
177 (max_protected_packet_ - min_protected_packet_ + 1) - 177 (max_protected_packet_ - min_protected_packet_ + 1) -
178 received_packets_.size()); 178 received_packets_.size());
179 } 179 }
180 180
181 const StringPiece QuicFecGroup::PayloadParity() const { 181 const StringPiece QuicFecGroup::PayloadParity() const {
182 return StringPiece(payload_parity_, payload_parity_len_); 182 return StringPiece(payload_parity_, payload_parity_len_);
183 } 183 }
184 184
185 QuicPacketNumber QuicFecGroup::MinProtectedPacket() const {
186 return min_protected_packet_;
187 }
188
189 QuicPacketCount QuicFecGroup::NumReceivedPackets() const { 185 QuicPacketCount QuicFecGroup::NumReceivedPackets() const {
190 return received_packets_.size(); 186 return received_packets_.size();
191 } 187 }
192 188
193 EncryptionLevel QuicFecGroup::EffectiveEncryptionLevel() const { 189 EncryptionLevel QuicFecGroup::EffectiveEncryptionLevel() const {
194 return effective_encryption_level_; 190 return effective_encryption_level_;
195 } 191 }
196 192
197 } // namespace net 193 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_fec_group.h ('k') | net/quic/quic_fec_group_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698