OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 package org.chromium.android_webview; | 5 package org.chromium.android_webview; |
6 | 6 |
7 import org.chromium.net.NetError; | 7 import org.chromium.net.NetError; |
8 | 8 |
9 /** | 9 /** |
10 * This is a helper class to map native error code about loading a page to Andro
id specific ones. | 10 * This is a helper class to map native error code about loading a page to Andro
id specific ones. |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 case NetError.ERR_CONNECTION_ABORTED: | 90 case NetError.ERR_CONNECTION_ABORTED: |
91 case NetError.ERR_CONNECTION_FAILED: | 91 case NetError.ERR_CONNECTION_FAILED: |
92 case NetError.ERR_SOCKET_NOT_CONNECTED: | 92 case NetError.ERR_SOCKET_NOT_CONNECTED: |
93 return ERROR_CONNECT; | 93 return ERROR_CONNECT; |
94 | 94 |
95 case NetError.ERR_INTERNET_DISCONNECTED: | 95 case NetError.ERR_INTERNET_DISCONNECTED: |
96 case NetError.ERR_ADDRESS_INVALID: | 96 case NetError.ERR_ADDRESS_INVALID: |
97 case NetError.ERR_ADDRESS_UNREACHABLE: | 97 case NetError.ERR_ADDRESS_UNREACHABLE: |
98 case NetError.ERR_NAME_NOT_RESOLVED: | 98 case NetError.ERR_NAME_NOT_RESOLVED: |
99 case NetError.ERR_NAME_RESOLUTION_FAILED: | 99 case NetError.ERR_NAME_RESOLUTION_FAILED: |
| 100 case NetError.ERR_ICANN_NAME_COLLISION: |
100 return ERROR_HOST_LOOKUP; | 101 return ERROR_HOST_LOOKUP; |
101 | 102 |
102 case NetError.ERR_SSL_PROTOCOL_ERROR: | 103 case NetError.ERR_SSL_PROTOCOL_ERROR: |
103 case NetError.ERR_SSL_CLIENT_AUTH_CERT_NEEDED: | 104 case NetError.ERR_SSL_CLIENT_AUTH_CERT_NEEDED: |
104 case NetError.ERR_TUNNEL_CONNECTION_FAILED: | 105 case NetError.ERR_TUNNEL_CONNECTION_FAILED: |
105 case NetError.ERR_NO_SSL_VERSIONS_ENABLED: | 106 case NetError.ERR_NO_SSL_VERSIONS_ENABLED: |
106 case NetError.ERR_SSL_VERSION_OR_CIPHER_MISMATCH: | 107 case NetError.ERR_SSL_VERSION_OR_CIPHER_MISMATCH: |
107 case NetError.ERR_SSL_RENEGOTIATION_REQUESTED: | 108 case NetError.ERR_SSL_RENEGOTIATION_REQUESTED: |
108 case NetError.ERR_CERT_ERROR_IN_SSL_RENEGOTIATION: | 109 case NetError.ERR_CERT_ERROR_IN_SSL_RENEGOTIATION: |
109 case NetError.ERR_BAD_SSL_CLIENT_AUTH_CERT: | 110 case NetError.ERR_BAD_SSL_CLIENT_AUTH_CERT: |
(...skipping 24 matching lines...) Expand all Loading... |
134 case NetError.ERR_CERT_INVALID: | 135 case NetError.ERR_CERT_INVALID: |
135 case NetError.ERR_CERT_WEAK_SIGNATURE_ALGORITHM: | 136 case NetError.ERR_CERT_WEAK_SIGNATURE_ALGORITHM: |
136 case NetError.ERR_CERT_NON_UNIQUE_NAME: | 137 case NetError.ERR_CERT_NON_UNIQUE_NAME: |
137 return ERROR_OK; | 138 return ERROR_OK; |
138 | 139 |
139 default: | 140 default: |
140 return ERROR_UNKNOWN; | 141 return ERROR_UNKNOWN; |
141 } | 142 } |
142 } | 143 } |
143 } | 144 } |
OLD | NEW |