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

Side by Side Diff: net/quic/core/quic_transmission_info.h

Issue 2547583002: Landing Recent QUIC changes until Fri Nov 18 23:21:04 2016 +0000 (Closed)
Patch Set: Remove explicit HTTP/2 enum usage Created 4 years 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_tag_test.cc ('k') | net/quic/core/quic_transmission_info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef NET_QUIC_CORE_QUIC_TRANSMISSION_INFO_H_
6 #define NET_QUIC_CORE_QUIC_TRANSMISSION_INFO_H_
7
8 #include <list>
9
10 #include "net/quic/core/frames/quic_frame.h"
11 #include "net/quic/core/quic_ack_listener_interface.h"
12 #include "net/quic/core/quic_types.h"
13
14 namespace net {
15
16 // Stores details of a single sent packet.
17 struct NET_EXPORT_PRIVATE QuicTransmissionInfo {
18 // Used by STL when assigning into a map.
19 QuicTransmissionInfo();
20
21 // Constructs a Transmission with a new all_transmissions set
22 // containing |packet_number|.
23 QuicTransmissionInfo(EncryptionLevel level,
24 QuicPacketNumberLength packet_number_length,
25 TransmissionType transmission_type,
26 QuicTime sent_time,
27 QuicPacketLength bytes_sent,
28 bool has_crypto_handshake,
29 int num_padding_bytes);
30
31 QuicTransmissionInfo(const QuicTransmissionInfo& other);
32
33 ~QuicTransmissionInfo();
34
35 QuicFrames retransmittable_frames;
36 EncryptionLevel encryption_level;
37 QuicPacketNumberLength packet_number_length;
38 QuicPacketLength bytes_sent;
39 QuicTime sent_time;
40 // Reason why this packet was transmitted.
41 TransmissionType transmission_type;
42 // In flight packets have not been abandoned or lost.
43 bool in_flight;
44 // True if the packet can never be acked, so it can be removed. Occurs when
45 // a packet is never sent, after it is acknowledged once, or if it's a crypto
46 // packet we never expect to receive an ack for.
47 bool is_unackable;
48 // True if the packet contains stream data from the crypto stream.
49 bool has_crypto_handshake;
50 // Non-zero if the packet needs padding if it's retransmitted.
51 int16_t num_padding_bytes;
52 // Stores the packet number of the next retransmission of this packet.
53 // Zero if the packet has not been retransmitted.
54 QuicPacketNumber retransmission;
55 // Non-empty if there is a listener for this packet.
56 std::list<AckListenerWrapper> ack_listeners;
57 };
58
59 } // namespace net
60
61 #endif // NET_QUIC_CORE_QUIC_TRANSMISSION_INFO_H_
OLDNEW
« no previous file with comments | « net/quic/core/quic_tag_test.cc ('k') | net/quic/core/quic_transmission_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698