OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "components/domain_reliability/quic_error_mapping.h" | 5 #include "components/domain_reliability/quic_error_mapping.h" |
6 | 6 |
7 namespace domain_reliability { | 7 namespace domain_reliability { |
8 | 8 |
9 namespace { | 9 namespace { |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 { net::QUIC_MISSING_PAYLOAD, "quic.missing.payload" }, | 25 { net::QUIC_MISSING_PAYLOAD, "quic.missing.payload" }, |
26 // FEC data is malformed. | 26 // FEC data is malformed. |
27 { net::QUIC_INVALID_FEC_DATA, "quic.invalid.fec_data" }, | 27 { net::QUIC_INVALID_FEC_DATA, "quic.invalid.fec_data" }, |
28 // STREAM frame data is malformed. | 28 // STREAM frame data is malformed. |
29 { net::QUIC_INVALID_STREAM_DATA, "quic.invalid.stream_data" }, | 29 { net::QUIC_INVALID_STREAM_DATA, "quic.invalid.stream_data" }, |
30 // STREAM frame data is not encrypted. | 30 // STREAM frame data is not encrypted. |
31 { net::QUIC_UNENCRYPTED_STREAM_DATA, "quic.unencrypted.stream_data" }, | 31 { net::QUIC_UNENCRYPTED_STREAM_DATA, "quic.unencrypted.stream_data" }, |
32 // Attempt to send unencrypted STREAM frame. | 32 // Attempt to send unencrypted STREAM frame. |
33 { net::QUIC_ATTEMPT_TO_SEND_UNENCRYPTED_STREAM_DATA, | 33 { net::QUIC_ATTEMPT_TO_SEND_UNENCRYPTED_STREAM_DATA, |
34 "quic.attempt.to.unencrypted.stream.data" }, | 34 "quic.attempt.to.unencrypted.stream.data" }, |
| 35 // Received a frame which is likely the result of memory corruption. |
| 36 { net::QUIC_MAYBE_CORRUPTED_MEMORY, "quic.maybe.corrupted.momery" }, |
35 // FEC frame data is not encrypted. | 37 // FEC frame data is not encrypted. |
36 { net::QUIC_UNENCRYPTED_FEC_DATA, "quic.unencrypted.fec.data" }, | 38 { net::QUIC_UNENCRYPTED_FEC_DATA, "quic.unencrypted.fec.data" }, |
37 // RST_STREAM frame data is malformed. | 39 // RST_STREAM frame data is malformed. |
38 { net::QUIC_INVALID_RST_STREAM_DATA, "quic.invalid.rst_stream_data" }, | 40 { net::QUIC_INVALID_RST_STREAM_DATA, "quic.invalid.rst_stream_data" }, |
39 // CONNECTION_CLOSE frame data is malformed. | 41 // CONNECTION_CLOSE frame data is malformed. |
40 { net::QUIC_INVALID_CONNECTION_CLOSE_DATA, | 42 { net::QUIC_INVALID_CONNECTION_CLOSE_DATA, |
41 "quic.invalid.connection_close_data" }, | 43 "quic.invalid.connection_close_data" }, |
42 // GOAWAY frame data is malformed. | 44 // GOAWAY frame data is malformed. |
43 { net::QUIC_INVALID_GOAWAY_DATA, "quic.invalid.goaway_data" }, | 45 { net::QUIC_INVALID_GOAWAY_DATA, "quic.invalid.goaway_data" }, |
44 // WINDOW_UPDATE frame data is malformed. | 46 // WINDOW_UPDATE frame data is malformed. |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 *beacon_quic_error_out = kQuicErrorMap[i].beacon_quic_error; | 248 *beacon_quic_error_out = kQuicErrorMap[i].beacon_quic_error; |
247 return true; | 249 return true; |
248 } | 250 } |
249 } | 251 } |
250 } | 252 } |
251 beacon_quic_error_out->clear(); | 253 beacon_quic_error_out->clear(); |
252 return false; | 254 return false; |
253 } | 255 } |
254 | 256 |
255 } // namespace domain_reliability | 257 } // namespace domain_reliability |
OLD | NEW |