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 |
| 11 #include <array> |
11 #include <limits> | 12 #include <limits> |
12 #include <list> | 13 #include <list> |
13 #include <map> | 14 #include <map> |
14 #include <memory> | 15 #include <memory> |
15 #include <ostream> | 16 #include <ostream> |
16 #include <set> | 17 #include <set> |
17 #include <string> | 18 #include <string> |
18 #include <utility> | 19 #include <utility> |
19 #include <vector> | 20 #include <vector> |
20 | 21 |
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
720 QUIC_CONNECTION_MIGRATION_NON_MIGRATABLE_STREAM = 84, | 721 QUIC_CONNECTION_MIGRATION_NON_MIGRATABLE_STREAM = 84, |
721 | 722 |
722 // Stream frames arrived too discontiguously so that stream sequencer buffer | 723 // Stream frames arrived too discontiguously so that stream sequencer buffer |
723 // maintains too many gaps. | 724 // maintains too many gaps. |
724 QUIC_TOO_MANY_FRAME_GAPS = 93, | 725 QUIC_TOO_MANY_FRAME_GAPS = 93, |
725 | 726 |
726 // No error. Used as bound while iterating. | 727 // No error. Used as bound while iterating. |
727 QUIC_LAST_ERROR = 95, | 728 QUIC_LAST_ERROR = 95, |
728 }; | 729 }; |
729 | 730 |
730 typedef char DiversificationNonce[32]; | 731 typedef std::array<char, 32> DiversificationNonce; |
731 | 732 |
732 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader { | 733 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader { |
733 QuicPacketPublicHeader(); | 734 QuicPacketPublicHeader(); |
734 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other); | 735 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other); |
735 ~QuicPacketPublicHeader(); | 736 ~QuicPacketPublicHeader(); |
736 | 737 |
737 // Universal header. All QuicPacket headers will have a connection_id and | 738 // Universal header. All QuicPacket headers will have a connection_id and |
738 // public flags. | 739 // public flags. |
739 QuicConnectionId connection_id; | 740 QuicConnectionId connection_id; |
740 QuicConnectionIdLength connection_id_length; | 741 QuicConnectionIdLength connection_id_length; |
(...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1535 : iov(iov), iov_count(iov_count), total_length(total_length) {} | 1536 : iov(iov), iov_count(iov_count), total_length(total_length) {} |
1536 | 1537 |
1537 const struct iovec* iov; | 1538 const struct iovec* iov; |
1538 const int iov_count; | 1539 const int iov_count; |
1539 const size_t total_length; | 1540 const size_t total_length; |
1540 }; | 1541 }; |
1541 | 1542 |
1542 } // namespace net | 1543 } // namespace net |
1543 | 1544 |
1544 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1545 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
OLD | NEW |