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

Side by Side Diff: net/quic/quic_sent_packet_manager.h

Issue 1495243002: Remove EncryptionLevel from QUIC's RetransmittableFrames and add it to TransmissionInfo. No functi… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@108735153
Patch Set: Created 5 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/quic_protocol.cc ('k') | net/quic/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 #ifndef NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ 5 #ifndef NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_
6 #define NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ 6 #define NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // Called when RTT may have changed, including when an RTT is read from 70 // Called when RTT may have changed, including when an RTT is read from
71 // the config. 71 // the config.
72 virtual void OnRttChange() = 0; 72 virtual void OnRttChange() = 0;
73 }; 73 };
74 74
75 // Struct to store the pending retransmission information. 75 // Struct to store the pending retransmission information.
76 struct PendingRetransmission { 76 struct PendingRetransmission {
77 PendingRetransmission(QuicPacketNumber packet_number, 77 PendingRetransmission(QuicPacketNumber packet_number,
78 TransmissionType transmission_type, 78 TransmissionType transmission_type,
79 const RetransmittableFrames& retransmittable_frames, 79 const RetransmittableFrames& retransmittable_frames,
80 EncryptionLevel encryption_level,
80 QuicPacketNumberLength packet_number_length) 81 QuicPacketNumberLength packet_number_length)
81 : packet_number(packet_number), 82 : packet_number(packet_number),
82 transmission_type(transmission_type), 83 transmission_type(transmission_type),
83 retransmittable_frames(retransmittable_frames), 84 retransmittable_frames(retransmittable_frames),
85 encryption_level(encryption_level),
84 packet_number_length(packet_number_length) {} 86 packet_number_length(packet_number_length) {}
85 87
86 QuicPacketNumber packet_number; 88 QuicPacketNumber packet_number;
87 TransmissionType transmission_type; 89 TransmissionType transmission_type;
88 const RetransmittableFrames& retransmittable_frames; 90 const RetransmittableFrames& retransmittable_frames;
91 EncryptionLevel encryption_level;
89 QuicPacketNumberLength packet_number_length; 92 QuicPacketNumberLength packet_number_length;
90 }; 93 };
91 94
92 QuicSentPacketManager(Perspective perspective, 95 QuicSentPacketManager(Perspective perspective,
93 const QuicClock* clock, 96 const QuicClock* clock,
94 QuicConnectionStats* stats, 97 QuicConnectionStats* stats,
95 CongestionControlType congestion_control_type, 98 CongestionControlType congestion_control_type,
96 LossDetectionType loss_type); 99 LossDetectionType loss_type);
97 virtual ~QuicSentPacketManager(); 100 virtual ~QuicSentPacketManager();
98 101
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 // Records bandwidth from server to client in normal operation, over periods 410 // Records bandwidth from server to client in normal operation, over periods
408 // of time with no loss events. 411 // of time with no loss events.
409 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_; 412 QuicSustainedBandwidthRecorder sustained_bandwidth_recorder_;
410 413
411 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager); 414 DISALLOW_COPY_AND_ASSIGN(QuicSentPacketManager);
412 }; 415 };
413 416
414 } // namespace net 417 } // namespace net
415 418
416 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_ 419 #endif // NET_QUIC_QUIC_SENT_PACKET_MANAGER_H_
OLDNEW
« no previous file with comments | « net/quic/quic_protocol.cc ('k') | net/quic/quic_sent_packet_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698