From 85a50ff48b2331913cc87f483eafba9f231c8c8c Mon Sep 17 00:00:00 2001 From: Patrick Scott Date: Tue, 25 Jan 2011 14:42:12 -0500 Subject: Pass the auto login header information to the app. Add a new callback to handle auto login requests. Bug: 3367381 Change-Id: I2ee8038cdf8a4ff9d1d3de0c871a0c60f1769655 --- core/java/android/webkit/WebViewClient.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'core/java/android/webkit/WebViewClient.java') diff --git a/core/java/android/webkit/WebViewClient.java b/core/java/android/webkit/WebViewClient.java index db605de6dc77..65026a5d02ac 100644 --- a/core/java/android/webkit/WebViewClient.java +++ b/core/java/android/webkit/WebViewClient.java @@ -256,4 +256,18 @@ public class WebViewClient { */ public void onScaleChanged(WebView view, float oldScale, float newScale) { } + + /** + * Notify the host application that a request to automatically log in the + * user has been processed. + * @param view The WebView requesting the login. + * @param realm The account realm used to look up accounts. + * @param account An optional account. If not null, the account should be + * checked against accounts on the device. If it is a valid + * account, it should be used to log in the user. + * @param args Authenticator specific arguments used to log in the user. + */ + public void onReceivedLoginRequest(WebView view, String realm, + String account, String args) { + } } -- cgit v1.2.3