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 "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/port.h" | 8 #include "base/port.h" |
9 | 9 |
10 namespace net { | 10 namespace net { |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 RETURN_STRING_LITERAL(QUIC_CRYPTO_MESSAGE_INDEX_NOT_FOUND); | 120 RETURN_STRING_LITERAL(QUIC_CRYPTO_MESSAGE_INDEX_NOT_FOUND); |
121 RETURN_STRING_LITERAL(QUIC_INVALID_STREAM_ID); | 121 RETURN_STRING_LITERAL(QUIC_INVALID_STREAM_ID); |
122 RETURN_STRING_LITERAL(QUIC_TOO_MANY_OPEN_STREAMS); | 122 RETURN_STRING_LITERAL(QUIC_TOO_MANY_OPEN_STREAMS); |
123 RETURN_STRING_LITERAL(QUIC_PUBLIC_RESET); | 123 RETURN_STRING_LITERAL(QUIC_PUBLIC_RESET); |
124 RETURN_STRING_LITERAL(QUIC_INVALID_VERSION); | 124 RETURN_STRING_LITERAL(QUIC_INVALID_VERSION); |
125 RETURN_STRING_LITERAL(QUIC_STREAM_RST_BEFORE_HEADERS_DECOMPRESSED); | 125 RETURN_STRING_LITERAL(QUIC_STREAM_RST_BEFORE_HEADERS_DECOMPRESSED); |
126 RETURN_STRING_LITERAL(QUIC_INVALID_HEADER_ID); | 126 RETURN_STRING_LITERAL(QUIC_INVALID_HEADER_ID); |
127 RETURN_STRING_LITERAL(QUIC_CONNECTION_TIMED_OUT); | 127 RETURN_STRING_LITERAL(QUIC_CONNECTION_TIMED_OUT); |
128 RETURN_STRING_LITERAL(QUIC_PROOF_INVALID); | 128 RETURN_STRING_LITERAL(QUIC_PROOF_INVALID); |
129 RETURN_STRING_LITERAL(QUIC_CRYPTO_DUPLICATE_TAG); | 129 RETURN_STRING_LITERAL(QUIC_CRYPTO_DUPLICATE_TAG); |
| 130 RETURN_STRING_LITERAL(QUIC_CRYPTO_ENCRYPTION_LEVEL_INCORRECT); |
| 131 RETURN_STRING_LITERAL(QUIC_CRYPTO_SERVER_CONFIG_EXPIRED); |
130 RETURN_STRING_LITERAL(QUIC_LAST_ERROR); | 132 RETURN_STRING_LITERAL(QUIC_LAST_ERROR); |
131 // Intentionally have no default case, so we'll break the build | 133 // Intentionally have no default case, so we'll break the build |
132 // if we add errors and don't put them here. | 134 // if we add errors and don't put them here. |
133 } | 135 } |
134 // Return a default value so that we return this when |error| doesn't match | 136 // Return a default value so that we return this when |error| doesn't match |
135 // any of the QuicErrorCodes. This can happen when the ConnectionClose | 137 // any of the QuicErrorCodes. This can happen when the ConnectionClose |
136 // frame sent by the peer (attacker) has invalid error code. | 138 // frame sent by the peer (attacker) has invalid error code. |
137 return "INVALID_ERROR_CODE"; | 139 return "INVALID_ERROR_CODE"; |
138 } | 140 } |
139 | 141 |
140 } // namespace net | 142 } // namespace net |
OLD | NEW |