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

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

Issue 1785513003: Simplify QUIC's encryption path now that FEC is gone. Protected by FLAG_quic_inplace_encryption. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@116261116
Patch Set: Created 4 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/quic_packet_creator.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 10
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 NET_EXPORT_PRIVATE size_t GetPacketHeaderSize(const QuicPacketHeader& header); 413 NET_EXPORT_PRIVATE size_t GetPacketHeaderSize(const QuicPacketHeader& header);
414 414
415 NET_EXPORT_PRIVATE size_t 415 NET_EXPORT_PRIVATE size_t
416 GetPacketHeaderSize(QuicConnectionIdLength connection_id_length, 416 GetPacketHeaderSize(QuicConnectionIdLength connection_id_length,
417 bool include_version, 417 bool include_version,
418 bool include_path_id, 418 bool include_path_id,
419 QuicPacketNumberLength packet_number_length); 419 QuicPacketNumberLength packet_number_length);
420 420
421 // Index of the first byte in a QUIC packet of encrypted data. 421 // Index of the first byte in a QUIC packet of encrypted data.
422 NET_EXPORT_PRIVATE size_t 422 NET_EXPORT_PRIVATE size_t
423 GetStartOfEncryptedData(const QuicPacketHeader& header);
424
425 NET_EXPORT_PRIVATE size_t
423 GetStartOfEncryptedData(QuicConnectionIdLength connection_id_length, 426 GetStartOfEncryptedData(QuicConnectionIdLength connection_id_length,
424 bool include_version, 427 bool include_version,
425 bool include_path_id, 428 bool include_path_id,
426 QuicPacketNumberLength packet_number_length); 429 QuicPacketNumberLength packet_number_length);
427 430
428 enum QuicRstStreamErrorCode { 431 enum QuicRstStreamErrorCode {
429 // Complete response has been sent, sending a RST to ask the other endpoint 432 // Complete response has been sent, sending a RST to ask the other endpoint
430 // to stop sending request data without discarding the response. 433 // to stop sending request data without discarding the response.
431 QUIC_STREAM_NO_ERROR = 0, 434 QUIC_STREAM_NO_ERROR = 0,
432 435
(...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after
1386 : iov(iov), iov_count(iov_count), total_length(total_length) {} 1389 : iov(iov), iov_count(iov_count), total_length(total_length) {}
1387 1390
1388 const struct iovec* iov; 1391 const struct iovec* iov;
1389 const int iov_count; 1392 const int iov_count;
1390 const size_t total_length; 1393 const size_t total_length;
1391 }; 1394 };
1392 1395
1393 } // namespace net 1396 } // namespace net
1394 1397
1395 #endif // NET_QUIC_QUIC_PROTOCOL_H_ 1398 #endif // NET_QUIC_QUIC_PROTOCOL_H_
OLDNEW
« no previous file with comments | « net/quic/quic_packet_creator.cc ('k') | net/quic/quic_protocol.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698