OLD | NEW |
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/core/quic_utils.h" | 5 #include "net/quic/core/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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 RETURN_STRING_LITERAL(QUIC_CONNECTION_MIGRATION_NO_NEW_NETWORK); | 297 RETURN_STRING_LITERAL(QUIC_CONNECTION_MIGRATION_NO_NEW_NETWORK); |
298 RETURN_STRING_LITERAL(QUIC_CONNECTION_MIGRATION_NON_MIGRATABLE_STREAM); | 298 RETURN_STRING_LITERAL(QUIC_CONNECTION_MIGRATION_NON_MIGRATABLE_STREAM); |
299 RETURN_STRING_LITERAL(QUIC_TOO_MANY_RTOS); | 299 RETURN_STRING_LITERAL(QUIC_TOO_MANY_RTOS); |
300 RETURN_STRING_LITERAL(QUIC_ATTEMPT_TO_SEND_UNENCRYPTED_STREAM_DATA); | 300 RETURN_STRING_LITERAL(QUIC_ATTEMPT_TO_SEND_UNENCRYPTED_STREAM_DATA); |
301 RETURN_STRING_LITERAL(QUIC_MAYBE_CORRUPTED_MEMORY); | 301 RETURN_STRING_LITERAL(QUIC_MAYBE_CORRUPTED_MEMORY); |
302 RETURN_STRING_LITERAL(QUIC_CRYPTO_CHLO_TOO_LARGE); | 302 RETURN_STRING_LITERAL(QUIC_CRYPTO_CHLO_TOO_LARGE); |
303 RETURN_STRING_LITERAL(QUIC_MULTIPATH_PATH_DOES_NOT_EXIST); | 303 RETURN_STRING_LITERAL(QUIC_MULTIPATH_PATH_DOES_NOT_EXIST); |
304 RETURN_STRING_LITERAL(QUIC_MULTIPATH_PATH_NOT_ACTIVE); | 304 RETURN_STRING_LITERAL(QUIC_MULTIPATH_PATH_NOT_ACTIVE); |
305 RETURN_STRING_LITERAL(QUIC_TOO_MANY_FRAME_GAPS); | 305 RETURN_STRING_LITERAL(QUIC_TOO_MANY_FRAME_GAPS); |
306 RETURN_STRING_LITERAL(QUIC_STREAM_SEQUENCER_INVALID_STATE); | 306 RETURN_STRING_LITERAL(QUIC_STREAM_SEQUENCER_INVALID_STATE); |
| 307 RETURN_STRING_LITERAL(QUIC_TOO_MANY_SESSIONS_ON_SERVER); |
307 RETURN_STRING_LITERAL(QUIC_LAST_ERROR); | 308 RETURN_STRING_LITERAL(QUIC_LAST_ERROR); |
308 // Intentionally have no default case, so we'll break the build | 309 // Intentionally have no default case, so we'll break the build |
309 // if we add errors and don't put them here. | 310 // if we add errors and don't put them here. |
310 } | 311 } |
311 // Return a default value so that we return this when |error| doesn't match | 312 // Return a default value so that we return this when |error| doesn't match |
312 // any of the QuicErrorCodes. This can happen when the ConnectionClose | 313 // any of the QuicErrorCodes. This can happen when the ConnectionClose |
313 // frame sent by the peer (attacker) has invalid error code. | 314 // frame sent by the peer (attacker) has invalid error code. |
314 return "INVALID_ERROR_CODE"; | 315 return "INVALID_ERROR_CODE"; |
315 } | 316 } |
316 | 317 |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
567 | 568 |
568 bytes_remaining -= line_bytes; | 569 bytes_remaining -= line_bytes; |
569 offset += line_bytes; | 570 offset += line_bytes; |
570 p += line_bytes; | 571 p += line_bytes; |
571 s += '\n'; | 572 s += '\n'; |
572 } | 573 } |
573 return s; | 574 return s; |
574 } | 575 } |
575 | 576 |
576 } // namespace net | 577 } // namespace net |
OLD | NEW |