| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |