| 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 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 721 QUIC_CONNECTION_MIGRATION_NON_MIGRATABLE_STREAM = 84, | 721 QUIC_CONNECTION_MIGRATION_NON_MIGRATABLE_STREAM = 84, |
| 722 | 722 |
| 723 // Stream frames arrived too discontiguously so that stream sequencer buffer | 723 // Stream frames arrived too discontiguously so that stream sequencer buffer |
| 724 // maintains too many gaps. | 724 // maintains too many gaps. |
| 725 QUIC_TOO_MANY_FRAME_GAPS = 93, | 725 QUIC_TOO_MANY_FRAME_GAPS = 93, |
| 726 | 726 |
| 727 // Sequencer buffer get into weird state where continuing read/write will lead | 727 // Sequencer buffer get into weird state where continuing read/write will lead |
| 728 // to crash. | 728 // to crash. |
| 729 QUIC_STREAM_SEQUENCER_INVALID_STATE = 95, | 729 QUIC_STREAM_SEQUENCER_INVALID_STATE = 95, |
| 730 | 730 |
| 731 // Connection closed because of server hits max number of sessions allowed. |
| 732 // TODO(fayang): Add monitoring for QUIC_TOO_MANY_SESSIONS_ON_SERVER. |
| 733 QUIC_TOO_MANY_SESSIONS_ON_SERVER = 96, |
| 734 |
| 731 // No error. Used as bound while iterating. | 735 // No error. Used as bound while iterating. |
| 732 QUIC_LAST_ERROR = 96, | 736 QUIC_LAST_ERROR = 97, |
| 733 }; | 737 }; |
| 734 | 738 |
| 735 typedef std::array<char, 32> DiversificationNonce; | 739 typedef std::array<char, 32> DiversificationNonce; |
| 736 | 740 |
| 737 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader { | 741 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader { |
| 738 QuicPacketPublicHeader(); | 742 QuicPacketPublicHeader(); |
| 739 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other); | 743 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other); |
| 740 ~QuicPacketPublicHeader(); | 744 ~QuicPacketPublicHeader(); |
| 741 | 745 |
| 742 // Universal header. All QuicPacket headers will have a connection_id and | 746 // Universal header. All QuicPacket headers will have a connection_id and |
| (...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1540 : iov(iov), iov_count(iov_count), total_length(total_length) {} | 1544 : iov(iov), iov_count(iov_count), total_length(total_length) {} |
| 1541 | 1545 |
| 1542 const struct iovec* iov; | 1546 const struct iovec* iov; |
| 1543 const int iov_count; | 1547 const int iov_count; |
| 1544 const size_t total_length; | 1548 const size_t total_length; |
| 1545 }; | 1549 }; |
| 1546 | 1550 |
| 1547 } // namespace net | 1551 } // namespace net |
| 1548 | 1552 |
| 1549 #endif // NET_QUIC_QUIC_PROTOCOL_H_ | 1553 #endif // NET_QUIC_QUIC_PROTOCOL_H_ |
| OLD | NEW |