| 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/quic_utils.h" | 5 #include "net/quic/quic_utils.h" |
| 6 | 6 |
| 7 #include <ctype.h> | 7 #include <ctype.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 RETURN_STRING_LITERAL(QUIC_CRYPTO_DUPLICATE_TAG); | 214 RETURN_STRING_LITERAL(QUIC_CRYPTO_DUPLICATE_TAG); |
| 215 RETURN_STRING_LITERAL(QUIC_CRYPTO_ENCRYPTION_LEVEL_INCORRECT); | 215 RETURN_STRING_LITERAL(QUIC_CRYPTO_ENCRYPTION_LEVEL_INCORRECT); |
| 216 RETURN_STRING_LITERAL(QUIC_CRYPTO_SERVER_CONFIG_EXPIRED); | 216 RETURN_STRING_LITERAL(QUIC_CRYPTO_SERVER_CONFIG_EXPIRED); |
| 217 RETURN_STRING_LITERAL(QUIC_INVALID_CHANNEL_ID_SIGNATURE); | 217 RETURN_STRING_LITERAL(QUIC_INVALID_CHANNEL_ID_SIGNATURE); |
| 218 RETURN_STRING_LITERAL(QUIC_CRYPTO_SYMMETRIC_KEY_SETUP_FAILED); | 218 RETURN_STRING_LITERAL(QUIC_CRYPTO_SYMMETRIC_KEY_SETUP_FAILED); |
| 219 RETURN_STRING_LITERAL(QUIC_CRYPTO_MESSAGE_WHILE_VALIDATING_CLIENT_HELLO); | 219 RETURN_STRING_LITERAL(QUIC_CRYPTO_MESSAGE_WHILE_VALIDATING_CLIENT_HELLO); |
| 220 RETURN_STRING_LITERAL(QUIC_CRYPTO_UPDATE_BEFORE_HANDSHAKE_COMPLETE); | 220 RETURN_STRING_LITERAL(QUIC_CRYPTO_UPDATE_BEFORE_HANDSHAKE_COMPLETE); |
| 221 RETURN_STRING_LITERAL(QUIC_VERSION_NEGOTIATION_MISMATCH); | 221 RETURN_STRING_LITERAL(QUIC_VERSION_NEGOTIATION_MISMATCH); |
| 222 RETURN_STRING_LITERAL(QUIC_TOO_MANY_OUTSTANDING_SENT_PACKETS); | 222 RETURN_STRING_LITERAL(QUIC_TOO_MANY_OUTSTANDING_SENT_PACKETS); |
| 223 RETURN_STRING_LITERAL(QUIC_TOO_MANY_OUTSTANDING_RECEIVED_PACKETS); | 223 RETURN_STRING_LITERAL(QUIC_TOO_MANY_OUTSTANDING_RECEIVED_PACKETS); |
| 224 RETURN_STRING_LITERAL(QUIC_CONNECTION_CANCELLED); |
| 224 RETURN_STRING_LITERAL(QUIC_LAST_ERROR); | 225 RETURN_STRING_LITERAL(QUIC_LAST_ERROR); |
| 225 // Intentionally have no default case, so we'll break the build | 226 // Intentionally have no default case, so we'll break the build |
| 226 // if we add errors and don't put them here. | 227 // if we add errors and don't put them here. |
| 227 } | 228 } |
| 228 // Return a default value so that we return this when |error| doesn't match | 229 // Return a default value so that we return this when |error| doesn't match |
| 229 // any of the QuicErrorCodes. This can happen when the ConnectionClose | 230 // any of the QuicErrorCodes. This can happen when the ConnectionClose |
| 230 // frame sent by the peer (attacker) has invalid error code. | 231 // frame sent by the peer (attacker) has invalid error code. |
| 231 return "INVALID_ERROR_CODE"; | 232 return "INVALID_ERROR_CODE"; |
| 232 } | 233 } |
| 233 | 234 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 QuicPriority QuicUtils::LowestPriority() { | 337 QuicPriority QuicUtils::LowestPriority() { |
| 337 return QuicWriteBlockedList::kLowestPriority; | 338 return QuicWriteBlockedList::kLowestPriority; |
| 338 } | 339 } |
| 339 | 340 |
| 340 // static | 341 // static |
| 341 QuicPriority QuicUtils::HighestPriority() { | 342 QuicPriority QuicUtils::HighestPriority() { |
| 342 return QuicWriteBlockedList::kHighestPriority; | 343 return QuicWriteBlockedList::kHighestPriority; |
| 343 } | 344 } |
| 344 | 345 |
| 345 } // namespace net | 346 } // namespace net |
| OLD | NEW |