| 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_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 Loading... |
| 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 |
| OLD | NEW |