summaryrefslogtreecommitdiffstats
path: root/android_webview/test
diff options
context:
space:
mode:
authorsgurun@chromium.org <sgurun@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-22 22:22:44 +0000
committersgurun@chromium.org <sgurun@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-22 22:22:44 +0000
commit353539b10270cbd21ef9510d383f80a05e5e66dc (patch)
tree98c042942b5745f73a5fc8ea26a4c77815121079 /android_webview/test
parent756cbc945a29f68e9a42c2630c5829ec9b82e68e (diff)
downloadchromium_src-353539b10270cbd21ef9510d383f80a05e5e66dc.zip
chromium_src-353539b10270cbd21ef9510d383f80a05e5e66dc.tar.gz
chromium_src-353539b10270cbd21ef9510d383f80a05e5e66dc.tar.bz2
Add client cert support to android_webview
This CL implements client certs backend for android_webview. Most of the code path is similar to how chrome handles client certs. the callbacks are eventually plumbed to webview as APIs. We still need to answer the question that if ClientCert cache is needed at the android_webview layer. BUG=b/12983007 TBR=jcivelli@chromium.org Review URL: https://codereview.chromium.org/235563005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@265380 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview/test')
-rw-r--r--android_webview/test/shell/src/org/chromium/android_webview/test/NullContentsClient.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/android_webview/test/shell/src/org/chromium/android_webview/test/NullContentsClient.java b/android_webview/test/shell/src/org/chromium/android_webview/test/NullContentsClient.java
index 34e6ca5..d1dc1be 100644
--- a/android_webview/test/shell/src/org/chromium/android_webview/test/NullContentsClient.java
+++ b/android_webview/test/shell/src/org/chromium/android_webview/test/NullContentsClient.java
@@ -17,12 +17,15 @@ import android.webkit.ValueCallback;
import android.webkit.WebChromeClient;
import org.chromium.android_webview.AwContentsClient;
+import org.chromium.android_webview.AwContentsClientBridge;
import org.chromium.android_webview.AwHttpAuthHandler;
import org.chromium.android_webview.InterceptedRequestData;
import org.chromium.android_webview.JsPromptResultReceiver;
import org.chromium.android_webview.JsResultReceiver;
import org.chromium.base.ThreadUtils;
+import java.security.Principal;
+
/**
* As a convience for tests that only care about specefic callbacks, this class provides
* empty implementations of all abstract methods.
@@ -87,6 +90,14 @@ public class NullContentsClient extends AwContentsClient {
}
@Override
+ public void onReceivedClientCertRequest(
+ final AwContentsClientBridge.ClientCertificateRequestCallback callback,
+ final String[] keyTypes, final Principal[] principals, final String host,
+ final int port) {
+ callback.proceed(null, null);
+ }
+
+ @Override
public void onReceivedLoginRequest(String realm, String account, String args) {
}