summaryrefslogtreecommitdiff
path: root/core/java/android/webkit/WebViewClient.java
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2011-10-04 19:09:13 +0100
committerSteve Block <steveblock@google.com>2011-10-07 15:14:23 +0100
commitfe33a75cc8883dc5d50dd5a2fb0eac702f2a6992 (patch)
treece2cd14fc49e8a963308c66703f468915b7a76a2 /core/java/android/webkit/WebViewClient.java
parent17f254105b399c7a4216da2d477e7f9cbdbd7319 (diff)
Add WebViewClient.onProceededAfterSslError()
This is used to notify the host application that an SSL error occurred while loading a resource, but the WebView but chose to proceed anyway based on a decision retained from a previous response to onReceivedSslError(). Bug: 5403366 Change-Id: I51a25b93d7824b7eb7b6d5a961cba948e37c85db
Diffstat (limited to 'core/java/android/webkit/WebViewClient.java')
-rw-r--r--core/java/android/webkit/WebViewClient.java19
1 files changed, 14 insertions, 5 deletions
diff --git a/core/java/android/webkit/WebViewClient.java b/core/java/android/webkit/WebViewClient.java
index d3be2bf1a8d6..81de35644455 100644
--- a/core/java/android/webkit/WebViewClient.java
+++ b/core/java/android/webkit/WebViewClient.java
@@ -186,11 +186,11 @@ public class WebViewClient {
}
/**
- * Notify the host application to handle a SSL certificate error request
- * (display the error to the user and ask whether to proceed or not). The
- * host application has to call either handler.cancel() or handler.proceed()
- * as the connection is suspended and waiting for the response. The default
- * behavior is to cancel the load.
+ * Notify the host application that an SSL error occurred while loading a
+ * resource. The host application must call either handler.cancel() or
+ * handler.proceed(). Note that the decision may be retained for use in
+ * response to future SSL errors. The default behavior is to cancel the
+ * load.
*
* @param view The WebView that is initiating the callback.
* @param handler An SslErrorHandler object that will handle the user's
@@ -203,6 +203,15 @@ public class WebViewClient {
}
/**
+ * Notify the host application that an SSL error occurred while loading a
+ * resource, but the WebView but chose to proceed anyway based on a
+ * decision retained from a previous response to onReceivedSslError().
+ * @hide
+ */
+ public void onProceededAfterSslError(WebView view, SslError error) {
+ }
+
+ /**
* Notify the host application to handle a SSL client certificate
* request (display the request to the user and ask whether to
* proceed with a client certificate or not). The host application