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

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

Issue 1246093003: relnote: Protect against a QUIC crash bug but logging a DFATAL and (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@revert_CHECK_bug_479880
Patch Set: Created 5 years, 5 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_generator_test.cc ('k') | net/quic/quic_utils.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 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 // The connection has too many outstanding received packets. 543 // The connection has too many outstanding received packets.
544 QUIC_TOO_MANY_OUTSTANDING_RECEIVED_PACKETS = 69, 544 QUIC_TOO_MANY_OUTSTANDING_RECEIVED_PACKETS = 69,
545 // The quic connection job to load server config is cancelled. 545 // The quic connection job to load server config is cancelled.
546 QUIC_CONNECTION_CANCELLED = 70, 546 QUIC_CONNECTION_CANCELLED = 70,
547 // Disabled QUIC because of high packet loss rate. 547 // Disabled QUIC because of high packet loss rate.
548 QUIC_BAD_PACKET_LOSS_RATE = 71, 548 QUIC_BAD_PACKET_LOSS_RATE = 71,
549 // Disabled QUIC because of too many PUBLIC_RESETs post handshake. 549 // Disabled QUIC because of too many PUBLIC_RESETs post handshake.
550 QUIC_PUBLIC_RESETS_POST_HANDSHAKE = 73, 550 QUIC_PUBLIC_RESETS_POST_HANDSHAKE = 73,
551 // Disabled QUIC because of too many timeouts with streams open. 551 // Disabled QUIC because of too many timeouts with streams open.
552 QUIC_TIMEOUTS_WITH_OPEN_STREAMS = 74, 552 QUIC_TIMEOUTS_WITH_OPEN_STREAMS = 74,
553 // Closed because we failed to serialize a packet.
554 QUIC_FAILED_TO_SERIALIZE_PACKET = 75,
553 555
554 // Crypto errors. 556 // Crypto errors.
555 557
556 // Hanshake failed. 558 // Hanshake failed.
557 QUIC_HANDSHAKE_FAILED = 28, 559 QUIC_HANDSHAKE_FAILED = 28,
558 // Handshake message contained out of order tags. 560 // Handshake message contained out of order tags.
559 QUIC_CRYPTO_TAGS_OUT_OF_ORDER = 29, 561 QUIC_CRYPTO_TAGS_OUT_OF_ORDER = 29,
560 // Handshake message contained too many entries. 562 // Handshake message contained too many entries.
561 QUIC_CRYPTO_TOO_MANY_ENTRIES = 30, 563 QUIC_CRYPTO_TOO_MANY_ENTRIES = 30,
562 // Handshake message contained an invalid value length. 564 // Handshake message contained an invalid value length.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 // A handshake message arrived, but we are still validating the 604 // A handshake message arrived, but we are still validating the
603 // previous handshake message. 605 // previous handshake message.
604 QUIC_CRYPTO_MESSAGE_WHILE_VALIDATING_CLIENT_HELLO = 54, 606 QUIC_CRYPTO_MESSAGE_WHILE_VALIDATING_CLIENT_HELLO = 54,
605 // A server config update arrived before the handshake is complete. 607 // A server config update arrived before the handshake is complete.
606 QUIC_CRYPTO_UPDATE_BEFORE_HANDSHAKE_COMPLETE = 65, 608 QUIC_CRYPTO_UPDATE_BEFORE_HANDSHAKE_COMPLETE = 65,
607 // This connection involved a version negotiation which appears to have been 609 // This connection involved a version negotiation which appears to have been
608 // tampered with. 610 // tampered with.
609 QUIC_VERSION_NEGOTIATION_MISMATCH = 55, 611 QUIC_VERSION_NEGOTIATION_MISMATCH = 55,
610 612
611 // No error. Used as bound while iterating. 613 // No error. Used as bound while iterating.
612 QUIC_LAST_ERROR = 75, 614 QUIC_LAST_ERROR = 76,
613 }; 615 };
614 616
615 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader { 617 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader {
616 QuicPacketPublicHeader(); 618 QuicPacketPublicHeader();
617 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other); 619 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other);
618 ~QuicPacketPublicHeader(); 620 ~QuicPacketPublicHeader();
619 621
620 // Universal header. All QuicPacket headers will have a connection_id and 622 // Universal header. All QuicPacket headers will have a connection_id and
621 // public flags. 623 // public flags.
622 QuicConnectionId connection_id; 624 QuicConnectionId connection_id;
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
1097 : iov(iov), iov_count(iov_count), total_length(total_length) {} 1099 : iov(iov), iov_count(iov_count), total_length(total_length) {}
1098 1100
1099 const struct iovec* iov; 1101 const struct iovec* iov;
1100 const int iov_count; 1102 const int iov_count;
1101 const size_t total_length; 1103 const size_t total_length;
1102 }; 1104 };
1103 1105
1104 } // namespace net 1106 } // namespace net
1105 1107
1106 #endif // NET_QUIC_QUIC_PROTOCOL_H_ 1108 #endif // NET_QUIC_QUIC_PROTOCOL_H_
OLDNEW
« no previous file with comments | « net/quic/quic_packet_generator_test.cc ('k') | net/quic/quic_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698