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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 // Connection changed networks too many times. | 212 // Connection changed networks too many times. |
213 { net::QUIC_CONNECTION_MIGRATION_TOO_MANY_CHANGES, | 213 { net::QUIC_CONNECTION_MIGRATION_TOO_MANY_CHANGES, |
214 "quic.connection_migration_too_many_changes" }, | 214 "quic.connection_migration_too_many_changes" }, |
215 // Connection migration was attempted, but there was no new network to | 215 // Connection migration was attempted, but there was no new network to |
216 // migrate to. | 216 // migrate to. |
217 { net::QUIC_CONNECTION_MIGRATION_NO_NEW_NETWORK, | 217 { net::QUIC_CONNECTION_MIGRATION_NO_NEW_NETWORK, |
218 "quic.connection_migration_no_new_network" }, | 218 "quic.connection_migration_no_new_network" }, |
219 // Network changed, but connection had one or more non-migratable streams. | 219 // Network changed, but connection had one or more non-migratable streams. |
220 { net::QUIC_CONNECTION_MIGRATION_NON_MIGRATABLE_STREAM, | 220 { net::QUIC_CONNECTION_MIGRATION_NON_MIGRATABLE_STREAM, |
221 "quic.connection_migration_non_migratable_stream" }, | 221 "quic.connection_migration_non_migratable_stream" }, |
| 222 // Connection migration was not attempted because it was disabled in the |
| 223 // received config. |
| 224 { net::QUIC_CONNECTION_MIGRATION_DISABLED, |
| 225 "quic.connection_migration_disabled" }, |
| 226 |
222 // Stream frame overlaps with buffered data. | 227 // Stream frame overlaps with buffered data. |
223 { net::QUIC_OVERLAPPING_STREAM_DATA, | 228 { net::QUIC_OVERLAPPING_STREAM_DATA, |
224 "quic.overlapping_stream_data" }, | 229 "quic.overlapping_stream_data" }, |
225 | 230 |
226 // No error. Used as bound while iterating. | 231 // No error. Used as bound while iterating. |
227 { net::QUIC_LAST_ERROR, "quic.last_error"} | 232 { net::QUIC_LAST_ERROR, "quic.last_error"} |
228 }; | 233 }; |
229 | 234 |
230 static_assert(arraysize(kQuicErrorMap) == net::kActiveQuicErrorCount, | 235 static_assert(arraysize(kQuicErrorMap) == net::kActiveQuicErrorCount, |
231 "quic_error_map is not in sync with quic protocol!"); | 236 "quic_error_map is not in sync with quic protocol!"); |
(...skipping 11 matching lines...) Expand all Loading... |
243 *beacon_quic_error_out = kQuicErrorMap[i].beacon_quic_error; | 248 *beacon_quic_error_out = kQuicErrorMap[i].beacon_quic_error; |
244 return true; | 249 return true; |
245 } | 250 } |
246 } | 251 } |
247 } | 252 } |
248 beacon_quic_error_out->clear(); | 253 beacon_quic_error_out->clear(); |
249 return false; | 254 return false; |
250 } | 255 } |
251 | 256 |
252 } // namespace domain_reliability | 257 } // namespace domain_reliability |
OLD | NEW |