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

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

Issue 1327923002: Migrates QUIC sessions to a new network when old network is (about to be) disconnected. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@home
Patch Set: Rebase. Created 4 years, 11 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_connection.cc ('k') | net/quic/quic_stream_factory.h » ('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 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 QUIC_CRYPTO_SYMMETRIC_KEY_SETUP_FAILED = 53, 632 QUIC_CRYPTO_SYMMETRIC_KEY_SETUP_FAILED = 53,
633 // A handshake message arrived, but we are still validating the 633 // A handshake message arrived, but we are still validating the
634 // previous handshake message. 634 // previous handshake message.
635 QUIC_CRYPTO_MESSAGE_WHILE_VALIDATING_CLIENT_HELLO = 54, 635 QUIC_CRYPTO_MESSAGE_WHILE_VALIDATING_CLIENT_HELLO = 54,
636 // A server config update arrived before the handshake is complete. 636 // A server config update arrived before the handshake is complete.
637 QUIC_CRYPTO_UPDATE_BEFORE_HANDSHAKE_COMPLETE = 65, 637 QUIC_CRYPTO_UPDATE_BEFORE_HANDSHAKE_COMPLETE = 65,
638 // This connection involved a version negotiation which appears to have been 638 // This connection involved a version negotiation which appears to have been
639 // tampered with. 639 // tampered with.
640 QUIC_VERSION_NEGOTIATION_MISMATCH = 55, 640 QUIC_VERSION_NEGOTIATION_MISMATCH = 55,
641 641
642 // IP address changed causing connection close.
643 QUIC_IP_ADDRESS_CHANGED = 78,
644
645 // Connection migration errors.
646 // Network changed, but connection had no migratable streams.
647 QUIC_CONNECTION_MIGRATION_NO_MIGRATABLE_STREAMS = 79,
648 // Connection changed networks too many times.
649 QUIC_CONNECTION_MIGRATION_TOO_MANY_CHANGES = 80,
650 // Connection migration was attempted, but there was no new network to
651 // migrate to.
652 QUIC_CONNECTION_MIGRATION_NO_NEW_NETWORK = 81,
653
642 // No error. Used as bound while iterating. 654 // No error. Used as bound while iterating.
643 QUIC_LAST_ERROR = 78, 655 QUIC_LAST_ERROR = 82,
644 }; 656 };
645 657
646 // Must be updated any time a QuicErrorCode is deprecated. 658 // Must be updated any time a QuicErrorCode is deprecated.
647 const int kDeprecatedQuicErrorCount = 4; 659 const int kDeprecatedQuicErrorCount = 4;
648 const int kActiveQuicErrorCount = QUIC_LAST_ERROR - kDeprecatedQuicErrorCount; 660 const int kActiveQuicErrorCount = QUIC_LAST_ERROR - kDeprecatedQuicErrorCount;
649 661
650 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader { 662 struct NET_EXPORT_PRIVATE QuicPacketPublicHeader {
651 QuicPacketPublicHeader(); 663 QuicPacketPublicHeader();
652 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other); 664 explicit QuicPacketPublicHeader(const QuicPacketPublicHeader& other);
653 ~QuicPacketPublicHeader(); 665 ~QuicPacketPublicHeader();
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after
1317 : iov(iov), iov_count(iov_count), total_length(total_length) {} 1329 : iov(iov), iov_count(iov_count), total_length(total_length) {}
1318 1330
1319 const struct iovec* iov; 1331 const struct iovec* iov;
1320 const int iov_count; 1332 const int iov_count;
1321 const size_t total_length; 1333 const size_t total_length;
1322 }; 1334 };
1323 1335
1324 } // namespace net 1336 } // namespace net
1325 1337
1326 #endif // NET_QUIC_QUIC_PROTOCOL_H_ 1338 #endif // NET_QUIC_QUIC_PROTOCOL_H_
OLDNEW
« no previous file with comments | « net/quic/quic_connection.cc ('k') | net/quic/quic_stream_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698