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

Side by Side Diff: net/quic/core/quic_received_packet_manager.cc

Issue 2651673004: Add quic_map_util. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « net/quic/core/quic_framer.cc ('k') | net/quic/core/quic_sent_packet_manager.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/core/quic_received_packet_manager.h" 5 #include "net/quic/core/quic_received_packet_manager.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/stl_util.h"
11 #include "net/base/linked_hash_map.h" 10 #include "net/base/linked_hash_map.h"
12 #include "net/quic/core/crypto/crypto_protocol.h" 11 #include "net/quic/core/crypto/crypto_protocol.h"
13 #include "net/quic/core/quic_connection_stats.h" 12 #include "net/quic/core/quic_connection_stats.h"
14 #include "net/quic/platform/api/quic_bug_tracker.h" 13 #include "net/quic/platform/api/quic_bug_tracker.h"
15 14
16 namespace net { 15 namespace net {
17 16
18 namespace { 17 namespace {
19 18
20 // The maximum number of packets to ack immediately after a missing packet for 19 // The maximum number of packets to ack immediately after a missing packet for
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 140
142 bool QuicReceivedPacketManager::ack_frame_updated() const { 141 bool QuicReceivedPacketManager::ack_frame_updated() const {
143 return ack_frame_updated_; 142 return ack_frame_updated_;
144 } 143 }
145 144
146 QuicPacketNumber QuicReceivedPacketManager::GetLargestObserved() const { 145 QuicPacketNumber QuicReceivedPacketManager::GetLargestObserved() const {
147 return ack_frame_.largest_observed; 146 return ack_frame_.largest_observed;
148 } 147 }
149 148
150 } // namespace net 149 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/quic_framer.cc ('k') | net/quic/core/quic_sent_packet_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698