Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: android_webview/java/src/org/chromium/android_webview/ErrorCodeConversionHelper.java

Issue 1002283005: Add an error page for net::ERR_ICANN_NAME_COLLISION. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dns_53
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | build/ios/grit_whitelist.txt » ('j') | build/ios/grit_whitelist.txt » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | build/ios/grit_whitelist.txt » ('j') | build/ios/grit_whitelist.txt » ('J')

Powered by Google App Engine
This is Rietveld 408576698