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

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

Issue 1502503002: Move encryption_level from QueuedPacket into SerializedPacket. No functional change. Not flag pro… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@108718393
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_packet_creator_test.cc ('k') | net/quic/quic_protocol.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PROTOCOL_H_ 5 #ifndef NET_QUIC_QUIC_PROTOCOL_H_
6 #define NET_QUIC_QUIC_PROTOCOL_H_ 6 #define NET_QUIC_QUIC_PROTOCOL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <limits> 10 #include <limits>
(...skipping 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after
1191 bool has_ack, 1191 bool has_ack,
1192 bool has_stop_waiting); 1192 bool has_stop_waiting);
1193 SerializedPacket(QuicPacketNumber packet_number, 1193 SerializedPacket(QuicPacketNumber packet_number,
1194 QuicPacketNumberLength packet_number_length, 1194 QuicPacketNumberLength packet_number_length,
1195 char* encrypted_buffer, 1195 char* encrypted_buffer,
1196 size_t encrypted_length, 1196 size_t encrypted_length,
1197 bool owns_buffer, 1197 bool owns_buffer,
1198 QuicPacketEntropyHash entropy_hash, 1198 QuicPacketEntropyHash entropy_hash,
1199 RetransmittableFrames* retransmittable_frames, 1199 RetransmittableFrames* retransmittable_frames,
1200 bool has_ack, 1200 bool has_ack,
1201 bool has_stop_waiting); 1201 bool has_stop_waiting,
1202 EncryptionLevel level);
1202 ~SerializedPacket(); 1203 ~SerializedPacket();
1203 1204
1204 QuicEncryptedPacket* packet; 1205 QuicEncryptedPacket* packet;
1205 RetransmittableFrames* retransmittable_frames; 1206 RetransmittableFrames* retransmittable_frames;
1206 QuicPacketNumber packet_number; 1207 QuicPacketNumber packet_number;
1207 QuicPacketNumberLength packet_number_length; 1208 QuicPacketNumberLength packet_number_length;
1209 EncryptionLevel encryption_level;
1208 QuicPacketEntropyHash entropy_hash; 1210 QuicPacketEntropyHash entropy_hash;
1209 bool is_fec_packet; 1211 bool is_fec_packet;
1210 bool has_ack; 1212 bool has_ack;
1211 bool has_stop_waiting; 1213 bool has_stop_waiting;
1212 1214
1213 // Optional notifiers which will be informed when this packet has been ACKed. 1215 // Optional notifiers which will be informed when this packet has been ACKed.
1214 std::list<AckListenerWrapper> listeners; 1216 std::list<AckListenerWrapper> listeners;
1215 }; 1217 };
1216 1218
1217 struct NET_EXPORT_PRIVATE TransmissionInfo { 1219 struct NET_EXPORT_PRIVATE TransmissionInfo {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
1262 : iov(iov), iov_count(iov_count), total_length(total_length) {} 1264 : iov(iov), iov_count(iov_count), total_length(total_length) {}
1263 1265
1264 const struct iovec* iov; 1266 const struct iovec* iov;
1265 const int iov_count; 1267 const int iov_count;
1266 const size_t total_length; 1268 const size_t total_length;
1267 }; 1269 };
1268 1270
1269 } // namespace net 1271 } // namespace net
1270 1272
1271 #endif // NET_QUIC_QUIC_PROTOCOL_H_ 1273 #endif // NET_QUIC_QUIC_PROTOCOL_H_
OLDNEW
« no previous file with comments | « net/quic/quic_packet_creator_test.cc ('k') | net/quic/quic_protocol.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698