| 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/cronet/android/url_request_error.h" | 5 #include "components/cronet/android/url_request_error.h" |
| 6 | 6 |
| 7 #include "net/base/net_errors.h" | 7 #include "net/base/net_errors.h" |
| 8 | 8 |
| 9 namespace cronet { | 9 namespace cronet { |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 case net::ERR_CONNECTION_CLOSED: | 21 case net::ERR_CONNECTION_CLOSED: |
| 22 return CONNECTION_CLOSED; | 22 return CONNECTION_CLOSED; |
| 23 case net::ERR_CONNECTION_TIMED_OUT: | 23 case net::ERR_CONNECTION_TIMED_OUT: |
| 24 return CONNECTION_TIMED_OUT; | 24 return CONNECTION_TIMED_OUT; |
| 25 case net::ERR_CONNECTION_REFUSED: | 25 case net::ERR_CONNECTION_REFUSED: |
| 26 return CONNECTION_REFUSED; | 26 return CONNECTION_REFUSED; |
| 27 case net::ERR_CONNECTION_RESET: | 27 case net::ERR_CONNECTION_RESET: |
| 28 return CONNECTION_RESET; | 28 return CONNECTION_RESET; |
| 29 case net::ERR_ADDRESS_UNREACHABLE: | 29 case net::ERR_ADDRESS_UNREACHABLE: |
| 30 return ADDRESS_UNREACHABLE; | 30 return ADDRESS_UNREACHABLE; |
| 31 case net::ERR_QUIC_PROTOCOL_ERROR: |
| 32 return QUIC_PROTOCOL_FAILED; |
| 31 default: | 33 default: |
| 32 return OTHER; | 34 return OTHER; |
| 33 } | 35 } |
| 34 } | 36 } |
| 35 | 37 |
| 36 } // namespace cronet | 38 } // namespace cronet |
| OLD | NEW |