| 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/logging.h" | 10 #include "base/logging.h" |
| 10 | 11 |
| 11 using base::StringPiece; | 12 using base::StringPiece; |
| 12 using std::numeric_limits; | 13 using std::numeric_limits; |
| 13 using std::set; | 14 using std::set; |
| 14 | 15 |
| 15 namespace net { | 16 namespace net { |
| 16 | 17 |
| 17 namespace { | 18 namespace { |
| 18 const QuicPacketSequenceNumber kNoSequenceNumber = kuint64max; | 19 const QuicPacketSequenceNumber kNoSequenceNumber = kuint64max; |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 } | 158 } |
| 158 | 159 |
| 159 size_t QuicFecGroup::NumMissingPackets() const { | 160 size_t QuicFecGroup::NumMissingPackets() const { |
| 160 if (min_protected_packet_ == kNoSequenceNumber) | 161 if (min_protected_packet_ == kNoSequenceNumber) |
| 161 return numeric_limits<size_t>::max(); | 162 return numeric_limits<size_t>::max(); |
| 162 return (max_protected_packet_ - min_protected_packet_ + 1) - | 163 return (max_protected_packet_ - min_protected_packet_ + 1) - |
| 163 received_packets_.size(); | 164 received_packets_.size(); |
| 164 } | 165 } |
| 165 | 166 |
| 166 } // namespace net | 167 } // namespace net |
| OLD | NEW |