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

Side by Side Diff: android_webview/javatests/src/org/chromium/android_webview/test/NullContentsClient.java

Issue 12091111: Implement Webviewclient.onReceivedSslError (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wasting time... Created 7 years, 10 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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.test; 5 package org.chromium.android_webview.test;
6 6
7 import android.content.Context; 7 import android.content.Context;
8 import android.graphics.Picture; 8 import android.graphics.Picture;
9 import android.net.http.SslError;
9 import android.os.Message; 10 import android.os.Message;
10 import android.view.KeyEvent; 11 import android.view.KeyEvent;
11 import android.view.View; 12 import android.view.View;
12 import android.webkit.ConsoleMessage; 13 import android.webkit.ConsoleMessage;
13 import android.webkit.GeolocationPermissions; 14 import android.webkit.GeolocationPermissions;
14 import android.webkit.ValueCallback; 15 import android.webkit.ValueCallback;
15 import android.webkit.WebChromeClient; 16 import android.webkit.WebChromeClient;
16 17
17 import org.chromium.android_webview.AwContentsClient; 18 import org.chromium.android_webview.AwContentsClient;
18 import org.chromium.android_webview.AwHttpAuthHandler; 19 import org.chromium.android_webview.AwHttpAuthHandler;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 public boolean onConsoleMessage(ConsoleMessage consoleMessage) { 60 public boolean onConsoleMessage(ConsoleMessage consoleMessage) {
60 return false; 61 return false;
61 } 62 }
62 63
63 @Override 64 @Override
64 public void onReceivedHttpAuthRequest(AwHttpAuthHandler handler, String host , String realm) { 65 public void onReceivedHttpAuthRequest(AwHttpAuthHandler handler, String host , String realm) {
65 handler.cancel(); 66 handler.cancel();
66 } 67 }
67 68
68 @Override 69 @Override
70 public void onReceivedSslError(ValueCallback<Boolean> callback, SslError err or) {
71 callback.onReceiveValue(false);
72 }
73
74 @Override
69 public void onReceivedLoginRequest(String realm, String account, String args ) { 75 public void onReceivedLoginRequest(String realm, String account, String args ) {
70 } 76 }
71 77
72 @Override 78 @Override
73 public void onGeolocationPermissionsShowPrompt(String origin, 79 public void onGeolocationPermissionsShowPrompt(String origin,
74 GeolocationPermissions.Callback callback) { 80 GeolocationPermissions.Callback callback) {
75 } 81 }
76 82
77 @Override 83 @Override
78 public void onGeolocationPermissionsHidePrompt() { 84 public void onGeolocationPermissionsHidePrompt() {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 146
141 @Override 147 @Override
142 public void onRequestFocus() { 148 public void onRequestFocus() {
143 } 149 }
144 150
145 @Override 151 @Override
146 public void onShowCustomView(View view, 152 public void onShowCustomView(View view,
147 int requestedOrientation, WebChromeClient.CustomViewCallback callback ) { 153 int requestedOrientation, WebChromeClient.CustomViewCallback callback ) {
148 } 154 }
149 } 155 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698