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

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

Issue 136853005: Use basictypes.h consistenly in QUIC code instead of macros.h and/or (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_data_stream.h ('k') | net/quic/quic_fec_group_test.cc » ('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/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
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
OLDNEW
« no previous file with comments | « net/quic/quic_data_stream.h ('k') | net/quic/quic_fec_group_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698