// Copyright (c) 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef QUICHE_QUIC_CORE_FRAMES_QUIC_ACK_FRAME_H_ #define QUICHE_QUIC_CORE_FRAMES_QUIC_ACK_FRAME_H_ #include <ostream> #include "quiche/quic/core/quic_interval.h" #include "quiche/quic/core/quic_interval_set.h" #include "quiche/quic/core/quic_types.h" #include "quiche/quic/platform/api/quic_export.h" #include "quiche/quic/platform/api/quic_flags.h" namespace quic { // A sequence of packet numbers where each number is unique. Intended to be used // in a sliding window fashion, where smaller old packet numbers are removed and // larger new packet numbers are added, with the occasional random access. class QUICHE_EXPORT PacketNumberQueue { … }; struct QUICHE_EXPORT QuicAckFrame { … }; // The highest acked packet number we've observed from the peer. If no packets // have been observed, return 0. inline QUICHE_EXPORT QuicPacketNumber LargestAcked(const QuicAckFrame& frame) { … } // True if the packet number is greater than largest_observed or is listed // as missing. // Always returns false for packet numbers less than least_unacked. QUICHE_EXPORT bool IsAwaitingPacket( const QuicAckFrame& ack_frame, QuicPacketNumber packet_number, QuicPacketNumber peer_least_packet_awaiting_ack); } // namespace quic #endif // QUICHE_QUIC_CORE_FRAMES_QUIC_ACK_FRAME_H_