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

Side by Side Diff: net/quic/core/frames/quic_ack_frame.h

Issue 2740453006: Add QuicStringPiece which is actually StringPiece. (Closed)
Patch Set: fix compile error and rebase Created 3 years, 9 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/crypto/strike_register_client.h ('k') | net/quic/core/frames/quic_frame.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) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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 #ifndef NET_QUIC_CORE_FRAMES_QUIC_ACK_FRAME_H_ 5 #ifndef NET_QUIC_CORE_FRAMES_QUIC_ACK_FRAME_H_
6 #define NET_QUIC_CORE_FRAMES_QUIC_ACK_FRAME_H_ 6 #define NET_QUIC_CORE_FRAMES_QUIC_ACK_FRAME_H_
7 7
8 #include <ostream> 8 #include <ostream>
9 #include <string> 9 #include <string>
10 10
11 #include "base/strings/string_piece.h"
12 #include "net/quic/core/quic_types.h" 11 #include "net/quic/core/quic_types.h"
13 #include "net/quic/platform/api/quic_containers.h" 12 #include "net/quic/platform/api/quic_containers.h"
14 #include "net/quic/platform/api/quic_export.h" 13 #include "net/quic/platform/api/quic_export.h"
15 14
16 namespace net { 15 namespace net {
17 16
18 // A sequence of packet numbers where each number is unique. Intended to be used 17 // A sequence of packet numbers where each number is unique. Intended to be used
19 // in a sliding window fashion, where smaller old packet numbers are removed and 18 // in a sliding window fashion, where smaller old packet numbers are removed and
20 // larger new packet numbers are added, with the occasional random access. 19 // larger new packet numbers are added, with the occasional random access.
21 class QUIC_EXPORT_PRIVATE PacketNumberQueue { 20 class QUIC_EXPORT_PRIVATE PacketNumberQueue {
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 // as missing. 123 // as missing.
125 // Always returns false for packet numbers less than least_unacked. 124 // Always returns false for packet numbers less than least_unacked.
126 QUIC_EXPORT_PRIVATE bool IsAwaitingPacket( 125 QUIC_EXPORT_PRIVATE bool IsAwaitingPacket(
127 const QuicAckFrame& ack_frame, 126 const QuicAckFrame& ack_frame,
128 QuicPacketNumber packet_number, 127 QuicPacketNumber packet_number,
129 QuicPacketNumber peer_least_packet_awaiting_ack); 128 QuicPacketNumber peer_least_packet_awaiting_ack);
130 129
131 } // namespace net 130 } // namespace net
132 131
133 #endif // NET_QUIC_CORE_FRAMES_QUIC_ACK_FRAME_H_ 132 #endif // NET_QUIC_CORE_FRAMES_QUIC_ACK_FRAME_H_
OLDNEW
« no previous file with comments | « net/quic/core/crypto/strike_register_client.h ('k') | net/quic/core/frames/quic_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698