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

Unified Diff: net/quic/core/quic_pending_retransmission.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/core/quic_packets.cc ('k') | net/quic/core/quic_protocol.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_pending_retransmission.h
diff --git a/net/quic/core/quic_pending_retransmission.h b/net/quic/core/quic_pending_retransmission.h
new file mode 100644
index 0000000000000000000000000000000000000000..71b01c4824b70581c60d2f6be101123704760835
--- /dev/null
+++ b/net/quic/core/quic_pending_retransmission.h
@@ -0,0 +1,44 @@
+// 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 NET_QUIC_CORE_QUIC_PENDING_RETRANSMISSION_H_
+#define NET_QUIC_CORE_QUIC_PENDING_RETRANSMISSION_H_
+
+#include "net/quic/core/frames/quic_frame.h"
+#include "net/quic/core/quic_types.h"
+
+namespace net {
+
+// Struct to store the pending retransmission information.
+struct NET_EXPORT_PRIVATE QuicPendingRetransmission {
+ QuicPendingRetransmission(QuicPathId path_id,
+ QuicPacketNumber packet_number,
+ TransmissionType transmission_type,
+ const QuicFrames& retransmittable_frames,
+ bool has_crypto_handshake,
+ int num_padding_bytes,
+ EncryptionLevel encryption_level,
+ QuicPacketNumberLength packet_number_length)
+ : packet_number(packet_number),
+ retransmittable_frames(retransmittable_frames),
+ transmission_type(transmission_type),
+ path_id(path_id),
+ has_crypto_handshake(has_crypto_handshake),
+ num_padding_bytes(num_padding_bytes),
+ encryption_level(encryption_level),
+ packet_number_length(packet_number_length) {}
+
+ QuicPacketNumber packet_number;
+ const QuicFrames& retransmittable_frames;
+ TransmissionType transmission_type;
+ QuicPathId path_id;
+ bool has_crypto_handshake;
+ int num_padding_bytes;
+ EncryptionLevel encryption_level;
+ QuicPacketNumberLength packet_number_length;
+};
+
+} // namespace net
+
+#endif // NET_QUIC_CORE_QUIC_PENDING_RETRANSMISSION_H_
« no previous file with comments | « net/quic/core/quic_packets.cc ('k') | net/quic/core/quic_protocol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698