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

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

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