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

Side by Side Diff: net/quic/quic_utils.cc

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_stream_factory_test.cc ('k') | net/quic/test_tools/quic_test_packet_maker.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 #include "net/quic/quic_utils.h" 5 #include "net/quic/quic_utils.h"
6 6
7 #include <ctype.h> 7 #include <ctype.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 RETURN_STRING_LITERAL(QUIC_VERSION_NEGOTIATION_MISMATCH); 268 RETURN_STRING_LITERAL(QUIC_VERSION_NEGOTIATION_MISMATCH);
269 RETURN_STRING_LITERAL(QUIC_TOO_MANY_OUTSTANDING_SENT_PACKETS); 269 RETURN_STRING_LITERAL(QUIC_TOO_MANY_OUTSTANDING_SENT_PACKETS);
270 RETURN_STRING_LITERAL(QUIC_TOO_MANY_OUTSTANDING_RECEIVED_PACKETS); 270 RETURN_STRING_LITERAL(QUIC_TOO_MANY_OUTSTANDING_RECEIVED_PACKETS);
271 RETURN_STRING_LITERAL(QUIC_CONNECTION_CANCELLED); 271 RETURN_STRING_LITERAL(QUIC_CONNECTION_CANCELLED);
272 RETURN_STRING_LITERAL(QUIC_BAD_PACKET_LOSS_RATE); 272 RETURN_STRING_LITERAL(QUIC_BAD_PACKET_LOSS_RATE);
273 RETURN_STRING_LITERAL(QUIC_PUBLIC_RESETS_POST_HANDSHAKE); 273 RETURN_STRING_LITERAL(QUIC_PUBLIC_RESETS_POST_HANDSHAKE);
274 RETURN_STRING_LITERAL(QUIC_TIMEOUTS_WITH_OPEN_STREAMS); 274 RETURN_STRING_LITERAL(QUIC_TIMEOUTS_WITH_OPEN_STREAMS);
275 RETURN_STRING_LITERAL(QUIC_FAILED_TO_SERIALIZE_PACKET); 275 RETURN_STRING_LITERAL(QUIC_FAILED_TO_SERIALIZE_PACKET);
276 RETURN_STRING_LITERAL(QUIC_TOO_MANY_AVAILABLE_STREAMS); 276 RETURN_STRING_LITERAL(QUIC_TOO_MANY_AVAILABLE_STREAMS);
277 RETURN_STRING_LITERAL(QUIC_UNENCRYPTED_FEC_DATA); 277 RETURN_STRING_LITERAL(QUIC_UNENCRYPTED_FEC_DATA);
278 RETURN_STRING_LITERAL(QUIC_IP_ADDRESS_CHANGED);
279 RETURN_STRING_LITERAL(QUIC_CONNECTION_MIGRATION_NO_MIGRATABLE_STREAMS);
280 RETURN_STRING_LITERAL(QUIC_CONNECTION_MIGRATION_TOO_MANY_CHANGES);
281 RETURN_STRING_LITERAL(QUIC_CONNECTION_MIGRATION_NO_NEW_NETWORK);
278 RETURN_STRING_LITERAL(QUIC_LAST_ERROR); 282 RETURN_STRING_LITERAL(QUIC_LAST_ERROR);
279 // Intentionally have no default case, so we'll break the build 283 // Intentionally have no default case, so we'll break the build
280 // if we add errors and don't put them here. 284 // if we add errors and don't put them here.
281 } 285 }
282 // Return a default value so that we return this when |error| doesn't match 286 // Return a default value so that we return this when |error| doesn't match
283 // any of the QuicErrorCodes. This can happen when the ConnectionClose 287 // any of the QuicErrorCodes. This can happen when the ConnectionClose
284 // frame sent by the peer (attacker) has invalid error code. 288 // frame sent by the peer (attacker) has invalid error code.
285 return "INVALID_ERROR_CODE"; 289 return "INVALID_ERROR_CODE";
286 } 290 }
287 291
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 385
382 bytes_remaining -= line_bytes; 386 bytes_remaining -= line_bytes;
383 offset += line_bytes; 387 offset += line_bytes;
384 p += line_bytes; 388 p += line_bytes;
385 s += '\n'; 389 s += '\n';
386 } 390 }
387 return s; 391 return s;
388 } 392 }
389 393
390 } // namespace net 394 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_stream_factory_test.cc ('k') | net/quic/test_tools/quic_test_packet_maker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698