Weather/smali_classes4/com/tencent/smtt/sdk/WebViewClient.smali
2021-05-10 10:13:34 +02:00

372 lines
11 KiB
Smali

.class public Lcom/tencent/smtt/sdk/WebViewClient;
.super Ljava/lang/Object;
# static fields
.field public static final ERROR_AUTHENTICATION:I = -0x4
.field public static final ERROR_BAD_URL:I = -0xc
.field public static final ERROR_CONNECT:I = -0x6
.field public static final ERROR_FAILED_SSL_HANDSHAKE:I = -0xb
.field public static final ERROR_FILE:I = -0xd
.field public static final ERROR_FILE_NOT_FOUND:I = -0xe
.field public static final ERROR_HOST_LOOKUP:I = -0x2
.field public static final ERROR_IO:I = -0x7
.field public static final ERROR_PROXY_AUTHENTICATION:I = -0x5
.field public static final ERROR_REDIRECT_LOOP:I = -0x9
.field public static final ERROR_TIMEOUT:I = -0x8
.field public static final ERROR_TOO_MANY_REQUESTS:I = -0xf
.field public static final ERROR_UNKNOWN:I = -0x1
.field public static final ERROR_UNSUPPORTED_AUTH_SCHEME:I = -0x3
.field public static final ERROR_UNSUPPORTED_SCHEME:I = -0xa
.field public static final INTERCEPT_BY_ISP:I = -0x10
# instance fields
.field b:Lcom/tencent/smtt/sdk/v;
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public doUpdateVisitedHistory(Lcom/tencent/smtt/sdk/WebView;Ljava/lang/String;Z)V
.locals 0
return-void
.end method
.method public onDetectedBlankScreen(Ljava/lang/String;I)V
.locals 0
return-void
.end method
.method public onFormResubmission(Lcom/tencent/smtt/sdk/WebView;Landroid/os/Message;Landroid/os/Message;)V
.locals 0
invoke-virtual {p2}, Landroid/os/Message;->sendToTarget()V
return-void
.end method
.method public onLoadResource(Lcom/tencent/smtt/sdk/WebView;Ljava/lang/String;)V
.locals 0
return-void
.end method
.method public onPageFinished(Lcom/tencent/smtt/sdk/WebView;Ljava/lang/String;)V
.locals 0
return-void
.end method
.method public onPageStarted(Lcom/tencent/smtt/sdk/WebView;Ljava/lang/String;Landroid/graphics/Bitmap;)V
.locals 1
iget-object v0, p0, Lcom/tencent/smtt/sdk/WebViewClient;->b:Lcom/tencent/smtt/sdk/v;
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/tencent/smtt/sdk/WebViewClient;->b:Lcom/tencent/smtt/sdk/v;
invoke-virtual {v0, p1, p2, p3}, Lcom/tencent/smtt/sdk/v;->a(Lcom/tencent/smtt/sdk/WebView;Ljava/lang/String;Landroid/graphics/Bitmap;)V
:cond_0
return-void
.end method
.method public onReceivedClientCertRequest(Lcom/tencent/smtt/sdk/WebView;Lcom/tencent/smtt/export/external/interfaces/ClientCertRequest;)V
.locals 0
invoke-virtual {p2}, Lcom/tencent/smtt/export/external/interfaces/ClientCertRequest;->cancel()V
return-void
.end method
.method public onReceivedError(Lcom/tencent/smtt/sdk/WebView;ILjava/lang/String;Ljava/lang/String;)V
.locals 0
return-void
.end method
.method public onReceivedError(Lcom/tencent/smtt/sdk/WebView;Lcom/tencent/smtt/export/external/interfaces/WebResourceRequest;Lcom/tencent/smtt/export/external/interfaces/WebResourceError;)V
.locals 2
iget-object v0, p0, Lcom/tencent/smtt/sdk/WebViewClient;->b:Lcom/tencent/smtt/sdk/v;
if-eqz v0, :cond_0
invoke-interface {p2}, Lcom/tencent/smtt/export/external/interfaces/WebResourceRequest;->isForMainFrame()Z
move-result v0
if-eqz v0, :cond_1
iget-object v0, p0, Lcom/tencent/smtt/sdk/WebViewClient;->b:Lcom/tencent/smtt/sdk/v;
invoke-virtual {p1}, Lcom/tencent/smtt/sdk/WebView;->d()Lcom/tencent/smtt/export/external/interfaces/IX5WebViewBase;
move-result-object p1
invoke-virtual {p3}, Lcom/tencent/smtt/export/external/interfaces/WebResourceError;->getErrorCode()I
move-result v1
invoke-virtual {p3}, Lcom/tencent/smtt/export/external/interfaces/WebResourceError;->getDescription()Ljava/lang/CharSequence;
move-result-object p3
invoke-interface {p3}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;
move-result-object p3
invoke-interface {p2}, Lcom/tencent/smtt/export/external/interfaces/WebResourceRequest;->getUrl()Landroid/net/Uri;
move-result-object p2
invoke-virtual {p2}, Landroid/net/Uri;->toString()Ljava/lang/String;
move-result-object p2
invoke-virtual {v0, p1, v1, p3, p2}, Lcom/tencent/smtt/sdk/v;->onReceivedError(Lcom/tencent/smtt/export/external/interfaces/IX5WebViewBase;ILjava/lang/String;Ljava/lang/String;)V
goto :goto_0
:cond_0
invoke-interface {p2}, Lcom/tencent/smtt/export/external/interfaces/WebResourceRequest;->isForMainFrame()Z
move-result v0
if-eqz v0, :cond_1
invoke-virtual {p3}, Lcom/tencent/smtt/export/external/interfaces/WebResourceError;->getErrorCode()I
move-result v0
invoke-virtual {p3}, Lcom/tencent/smtt/export/external/interfaces/WebResourceError;->getDescription()Ljava/lang/CharSequence;
move-result-object p3
invoke-interface {p3}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;
move-result-object p3
invoke-interface {p2}, Lcom/tencent/smtt/export/external/interfaces/WebResourceRequest;->getUrl()Landroid/net/Uri;
move-result-object p2
invoke-virtual {p2}, Landroid/net/Uri;->toString()Ljava/lang/String;
move-result-object p2
invoke-virtual {p0, p1, v0, p3, p2}, Lcom/tencent/smtt/sdk/WebViewClient;->onReceivedError(Lcom/tencent/smtt/sdk/WebView;ILjava/lang/String;Ljava/lang/String;)V
:cond_1
:goto_0
return-void
.end method
.method public onReceivedHttpAuthRequest(Lcom/tencent/smtt/sdk/WebView;Lcom/tencent/smtt/export/external/interfaces/HttpAuthHandler;Ljava/lang/String;Ljava/lang/String;)V
.locals 0
invoke-interface {p2}, Lcom/tencent/smtt/export/external/interfaces/HttpAuthHandler;->cancel()V
return-void
.end method
.method public onReceivedHttpError(Lcom/tencent/smtt/sdk/WebView;Lcom/tencent/smtt/export/external/interfaces/WebResourceRequest;Lcom/tencent/smtt/export/external/interfaces/WebResourceResponse;)V
.locals 0
return-void
.end method
.method public onReceivedLoginRequest(Lcom/tencent/smtt/sdk/WebView;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.locals 0
return-void
.end method
.method public onReceivedSslError(Lcom/tencent/smtt/sdk/WebView;Lcom/tencent/smtt/export/external/interfaces/SslErrorHandler;Lcom/tencent/smtt/export/external/interfaces/SslError;)V
.locals 0
invoke-interface {p2}, Lcom/tencent/smtt/export/external/interfaces/SslErrorHandler;->cancel()V
return-void
.end method
.method public onScaleChanged(Lcom/tencent/smtt/sdk/WebView;FF)V
.locals 0
return-void
.end method
.method public onTooManyRedirects(Lcom/tencent/smtt/sdk/WebView;Landroid/os/Message;Landroid/os/Message;)V
.locals 0
return-void
.end method
.method public onUnhandledKeyEvent(Lcom/tencent/smtt/sdk/WebView;Landroid/view/KeyEvent;)V
.locals 0
return-void
.end method
.method public shouldInterceptRequest(Lcom/tencent/smtt/sdk/WebView;Lcom/tencent/smtt/export/external/interfaces/WebResourceRequest;)Lcom/tencent/smtt/export/external/interfaces/WebResourceResponse;
.locals 1
iget-object v0, p0, Lcom/tencent/smtt/sdk/WebViewClient;->b:Lcom/tencent/smtt/sdk/v;
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/tencent/smtt/sdk/WebViewClient;->b:Lcom/tencent/smtt/sdk/v;
invoke-virtual {p1}, Lcom/tencent/smtt/sdk/WebView;->d()Lcom/tencent/smtt/export/external/interfaces/IX5WebViewBase;
move-result-object p1
invoke-interface {p2}, Lcom/tencent/smtt/export/external/interfaces/WebResourceRequest;->getUrl()Landroid/net/Uri;
move-result-object p2
invoke-virtual {p2}, Landroid/net/Uri;->toString()Ljava/lang/String;
move-result-object p2
invoke-virtual {v0, p1, p2}, Lcom/tencent/smtt/sdk/v;->shouldInterceptRequest(Lcom/tencent/smtt/export/external/interfaces/IX5WebViewBase;Ljava/lang/String;)Lcom/tencent/smtt/export/external/interfaces/WebResourceResponse;
move-result-object p1
return-object p1
:cond_0
invoke-interface {p2}, Lcom/tencent/smtt/export/external/interfaces/WebResourceRequest;->getUrl()Landroid/net/Uri;
move-result-object p2
invoke-virtual {p2}, Landroid/net/Uri;->toString()Ljava/lang/String;
move-result-object p2
invoke-virtual {p0, p1, p2}, Lcom/tencent/smtt/sdk/WebViewClient;->shouldInterceptRequest(Lcom/tencent/smtt/sdk/WebView;Ljava/lang/String;)Lcom/tencent/smtt/export/external/interfaces/WebResourceResponse;
move-result-object p1
return-object p1
.end method
.method public shouldInterceptRequest(Lcom/tencent/smtt/sdk/WebView;Lcom/tencent/smtt/export/external/interfaces/WebResourceRequest;Landroid/os/Bundle;)Lcom/tencent/smtt/export/external/interfaces/WebResourceResponse;
.locals 0
iget-object p3, p0, Lcom/tencent/smtt/sdk/WebViewClient;->b:Lcom/tencent/smtt/sdk/v;
if-eqz p3, :cond_0
iget-object p3, p0, Lcom/tencent/smtt/sdk/WebViewClient;->b:Lcom/tencent/smtt/sdk/v;
invoke-virtual {p1}, Lcom/tencent/smtt/sdk/WebView;->d()Lcom/tencent/smtt/export/external/interfaces/IX5WebViewBase;
move-result-object p1
invoke-virtual {p3, p1, p2}, Lcom/tencent/smtt/sdk/v;->shouldInterceptRequest(Lcom/tencent/smtt/export/external/interfaces/IX5WebViewBase;Lcom/tencent/smtt/export/external/interfaces/WebResourceRequest;)Lcom/tencent/smtt/export/external/interfaces/WebResourceResponse;
move-result-object p1
return-object p1
:cond_0
const/4 p1, 0x0
return-object p1
.end method
.method public shouldInterceptRequest(Lcom/tencent/smtt/sdk/WebView;Ljava/lang/String;)Lcom/tencent/smtt/export/external/interfaces/WebResourceResponse;
.locals 0
const/4 p1, 0x0
return-object p1
.end method
.method public shouldOverrideKeyEvent(Lcom/tencent/smtt/sdk/WebView;Landroid/view/KeyEvent;)Z
.locals 0
const/4 p1, 0x0
return p1
.end method
.method public shouldOverrideUrlLoading(Lcom/tencent/smtt/sdk/WebView;Lcom/tencent/smtt/export/external/interfaces/WebResourceRequest;)Z
.locals 1
iget-object v0, p0, Lcom/tencent/smtt/sdk/WebViewClient;->b:Lcom/tencent/smtt/sdk/v;
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/tencent/smtt/sdk/WebViewClient;->b:Lcom/tencent/smtt/sdk/v;
invoke-virtual {p1}, Lcom/tencent/smtt/sdk/WebView;->d()Lcom/tencent/smtt/export/external/interfaces/IX5WebViewBase;
move-result-object p1
invoke-interface {p2}, Lcom/tencent/smtt/export/external/interfaces/WebResourceRequest;->getUrl()Landroid/net/Uri;
move-result-object p2
invoke-virtual {p2}, Landroid/net/Uri;->toString()Ljava/lang/String;
move-result-object p2
invoke-virtual {v0, p1, p2}, Lcom/tencent/smtt/sdk/v;->shouldOverrideUrlLoading(Lcom/tencent/smtt/export/external/interfaces/IX5WebViewBase;Ljava/lang/String;)Z
move-result p1
return p1
:cond_0
invoke-interface {p2}, Lcom/tencent/smtt/export/external/interfaces/WebResourceRequest;->getUrl()Landroid/net/Uri;
move-result-object p2
invoke-virtual {p2}, Landroid/net/Uri;->toString()Ljava/lang/String;
move-result-object p2
invoke-virtual {p0, p1, p2}, Lcom/tencent/smtt/sdk/WebViewClient;->shouldOverrideUrlLoading(Lcom/tencent/smtt/sdk/WebView;Ljava/lang/String;)Z
move-result p1
return p1
.end method
.method public shouldOverrideUrlLoading(Lcom/tencent/smtt/sdk/WebView;Ljava/lang/String;)Z
.locals 0
const/4 p1, 0x0
return p1
.end method