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

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

Issue 1833093002: Disable connection migration if disabled in config sent by server. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@home
Patch Set: Fixes minor oversight in ErrorToString. Created 4 years, 9 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 | « components/domain_reliability/quic_error_mapping.cc ('k') | net/quic/quic_stream_factory.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 10
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 // Connection migration errors. 659 // Connection migration errors.
660 // Network changed, but connection had no migratable streams. 660 // Network changed, but connection had no migratable streams.
661 QUIC_CONNECTION_MIGRATION_NO_MIGRATABLE_STREAMS = 81, 661 QUIC_CONNECTION_MIGRATION_NO_MIGRATABLE_STREAMS = 81,
662 // Connection changed networks too many times. 662 // Connection changed networks too many times.
663 QUIC_CONNECTION_MIGRATION_TOO_MANY_CHANGES = 82, 663 QUIC_CONNECTION_MIGRATION_TOO_MANY_CHANGES = 82,
664 // Connection migration was attempted, but there was no new network to 664 // Connection migration was attempted, but there was no new network to
665 // migrate to. 665 // migrate to.
666 QUIC_CONNECTION_MIGRATION_NO_NEW_NETWORK = 83, 666 QUIC_CONNECTION_MIGRATION_NO_NEW_NETWORK = 83,
667 // Network changed, but connection had one or more non-migratable streams. 667 // Network changed, but connection had one or more non-migratable streams.
668 QUIC_CONNECTION_MIGRATION_NON_MIGRATABLE_STREAM = 84, 668 QUIC_CONNECTION_MIGRATION_NON_MIGRATABLE_STREAM = 84,
669 // Connection migration was not attempted because it was disabled in the
670 // received config.
671 QUIC_CONNECTION_MIGRATION_DISABLED = 88,
Ryan Hamilton 2016/03/26 15:44:47 I wonder if it wouldn't be simpler to use QUIC_IP_
Jana 2016/03/28 17:03:20 Makes sense. Done.
669 672
670 // No error. Used as bound while iterating. 673 // No error. Used as bound while iterating.
671 QUIC_LAST_ERROR = 88, 674 QUIC_LAST_ERROR = 89,
672 }; 675 };
673 676
674 // Must be updated any time a QuicErrorCode is deprecated. 677 // Must be updated any time a QuicErrorCode is deprecated.
675 const int kDeprecatedQuicErrorCount = 4; 678 const int kDeprecatedQuicErrorCount = 4;
676 const int kActiveQuicErrorCount = QUIC_LAST_ERROR - kDeprecatedQuicErrorCount; 679 const int kActiveQuicErrorCount = QUIC_LAST_ERROR - kDeprecatedQuicErrorCount;
677 680
678 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader { 681 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader {
679 QuicPacketPublicHeader(); 682 QuicPacketPublicHeader();
680 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other); 683 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other);
681 ~QuicPacketPublicHeader(); 684 ~QuicPacketPublicHeader();
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after
1423 : iov(iov), iov_count(iov_count), total_length(total_length) {} 1426 : iov(iov), iov_count(iov_count), total_length(total_length) {}
1424 1427
1425 const struct iovec* iov; 1428 const struct iovec* iov;
1426 const int iov_count; 1429 const int iov_count;
1427 const size_t total_length; 1430 const size_t total_length;
1428 }; 1431 };
1429 1432
1430 } // namespace net 1433 } // namespace net
1431 1434
1432 #endif // NET_QUIC_QUIC_PROTOCOL_H_ 1435 #endif // NET_QUIC_QUIC_PROTOCOL_H_
OLDNEW
« no previous file with comments | « components/domain_reliability/quic_error_mapping.cc ('k') | net/quic/quic_stream_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698