| 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 | 10 |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 RETURN_STRING_LITERAL(QUIC_FLOW_CONTROL_SENT_TOO_MUCH_DATA); | 206 RETURN_STRING_LITERAL(QUIC_FLOW_CONTROL_SENT_TOO_MUCH_DATA); |
| 207 RETURN_STRING_LITERAL(QUIC_FLOW_CONTROL_INVALID_WINDOW); | 207 RETURN_STRING_LITERAL(QUIC_FLOW_CONTROL_INVALID_WINDOW); |
| 208 RETURN_STRING_LITERAL(QUIC_CONNECTION_IP_POOLED); | 208 RETURN_STRING_LITERAL(QUIC_CONNECTION_IP_POOLED); |
| 209 RETURN_STRING_LITERAL(QUIC_PROOF_INVALID); | 209 RETURN_STRING_LITERAL(QUIC_PROOF_INVALID); |
| 210 RETURN_STRING_LITERAL(QUIC_CRYPTO_DUPLICATE_TAG); | 210 RETURN_STRING_LITERAL(QUIC_CRYPTO_DUPLICATE_TAG); |
| 211 RETURN_STRING_LITERAL(QUIC_CRYPTO_ENCRYPTION_LEVEL_INCORRECT); | 211 RETURN_STRING_LITERAL(QUIC_CRYPTO_ENCRYPTION_LEVEL_INCORRECT); |
| 212 RETURN_STRING_LITERAL(QUIC_CRYPTO_SERVER_CONFIG_EXPIRED); | 212 RETURN_STRING_LITERAL(QUIC_CRYPTO_SERVER_CONFIG_EXPIRED); |
| 213 RETURN_STRING_LITERAL(QUIC_INVALID_CHANNEL_ID_SIGNATURE); | 213 RETURN_STRING_LITERAL(QUIC_INVALID_CHANNEL_ID_SIGNATURE); |
| 214 RETURN_STRING_LITERAL(QUIC_CRYPTO_SYMMETRIC_KEY_SETUP_FAILED); | 214 RETURN_STRING_LITERAL(QUIC_CRYPTO_SYMMETRIC_KEY_SETUP_FAILED); |
| 215 RETURN_STRING_LITERAL(QUIC_CRYPTO_MESSAGE_WHILE_VALIDATING_CLIENT_HELLO); | 215 RETURN_STRING_LITERAL(QUIC_CRYPTO_MESSAGE_WHILE_VALIDATING_CLIENT_HELLO); |
| 216 RETURN_STRING_LITERAL(QUIC_CRYPTO_UPDATE_BEFORE_HANDSHAKE_COMPLETE); |
| 216 RETURN_STRING_LITERAL(QUIC_VERSION_NEGOTIATION_MISMATCH); | 217 RETURN_STRING_LITERAL(QUIC_VERSION_NEGOTIATION_MISMATCH); |
| 217 RETURN_STRING_LITERAL(QUIC_LAST_ERROR); | 218 RETURN_STRING_LITERAL(QUIC_LAST_ERROR); |
| 218 // Intentionally have no default case, so we'll break the build | 219 // Intentionally have no default case, so we'll break the build |
| 219 // if we add errors and don't put them here. | 220 // if we add errors and don't put them here. |
| 220 } | 221 } |
| 221 // Return a default value so that we return this when |error| doesn't match | 222 // Return a default value so that we return this when |error| doesn't match |
| 222 // any of the QuicErrorCodes. This can happen when the ConnectionClose | 223 // any of the QuicErrorCodes. This can happen when the ConnectionClose |
| 223 // frame sent by the peer (attacker) has invalid error code. | 224 // frame sent by the peer (attacker) has invalid error code. |
| 224 return "INVALID_ERROR_CODE"; | 225 return "INVALID_ERROR_CODE"; |
| 225 } | 226 } |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 QuicPriority QuicUtils::LowestPriority() { | 310 QuicPriority QuicUtils::LowestPriority() { |
| 310 return QuicWriteBlockedList::kLowestPriority; | 311 return QuicWriteBlockedList::kLowestPriority; |
| 311 } | 312 } |
| 312 | 313 |
| 313 // static | 314 // static |
| 314 QuicPriority QuicUtils::HighestPriority() { | 315 QuicPriority QuicUtils::HighestPriority() { |
| 315 return QuicWriteBlockedList::kHighestPriority; | 316 return QuicWriteBlockedList::kHighestPriority; |
| 316 } | 317 } |
| 317 | 318 |
| 318 } // namespace net | 319 } // namespace net |
| OLD | NEW |