WebSecurityControllerImpl.smali

.class public Lcom/just/agentweb/WebSecurityControllerImpl;
.super Ljava/lang/Object;
.source "WebSecurityControllerImpl.java"

# interfaces
.implements Lcom/just/agentweb/WebSecurityController;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lcom/just/agentweb/WebSecurityController<",
        "Lcom/just/agentweb/WebSecurityCheckLogic;",
        ">;"
    }
.end annotation


# instance fields
.field private mMap:Lb/a/b;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lb/a/b<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;"
        }
    .end annotation
.end field

.field private mSecurityType:Lcom/just/agentweb/AgentWeb$SecurityType;

.field private mWebView:Landroid/webkit/WebView;


# direct methods
.method public constructor <init>(Landroid/webkit/WebView;Lb/a/b;Lcom/just/agentweb/AgentWeb$SecurityType;)V
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/webkit/WebView;",
            "Lb/a/b<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;",
            "Lcom/just/agentweb/AgentWeb$SecurityType;",
            ")V"
        }
    .end annotation

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput-object p1, p0, Lcom/just/agentweb/WebSecurityControllerImpl;->mWebView:Landroid/webkit/WebView;

    .line 3
    iput-object p2, p0, Lcom/just/agentweb/WebSecurityControllerImpl;->mMap:Lb/a/b;

    .line 4
    iput-object p3, p0, Lcom/just/agentweb/WebSecurityControllerImpl;->mSecurityType:Lcom/just/agentweb/AgentWeb$SecurityType;

    return-void
.end method


# virtual methods
.method public check(Lcom/just/agentweb/WebSecurityCheckLogic;)V
    .registers 5

    .line 2
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0xb

    if-le v0, v1, :cond_b

    .line 3
    iget-object v0, p0, Lcom/just/agentweb/WebSecurityControllerImpl;->mWebView:Landroid/webkit/WebView;

    invoke-interface {p1, v0}, Lcom/just/agentweb/WebSecurityCheckLogic;->dealHoneyComb(Landroid/webkit/WebView;)V

    .line 4
    :cond_b
    iget-object v0, p0, Lcom/just/agentweb/WebSecurityControllerImpl;->mMap:Lb/a/b;

    if-eqz v0, :cond_22

    iget-object v1, p0, Lcom/just/agentweb/WebSecurityControllerImpl;->mSecurityType:Lcom/just/agentweb/AgentWeb$SecurityType;

    sget-object v2, Lcom/just/agentweb/AgentWeb$SecurityType;->STRICT_CHECK:Lcom/just/agentweb/AgentWeb$SecurityType;

    if-ne v1, v2, :cond_22

    invoke-virtual {v0}, Lb/a/i;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_22

    .line 5
    iget-object v0, p0, Lcom/just/agentweb/WebSecurityControllerImpl;->mMap:Lb/a/b;

    iget-object v1, p0, Lcom/just/agentweb/WebSecurityControllerImpl;->mSecurityType:Lcom/just/agentweb/AgentWeb$SecurityType;

    invoke-interface {p1, v0, v1}, Lcom/just/agentweb/WebSecurityCheckLogic;->dealJsInterface(Lb/a/b;Lcom/just/agentweb/AgentWeb$SecurityType;)V

    :cond_22
    return-void
.end method

.method public bridge synthetic check(Ljava/lang/Object;)V
    .registers 2

    .line 1
    check-cast p1, Lcom/just/agentweb/WebSecurityCheckLogic;

    invoke-virtual {p0, p1}, Lcom/just/agentweb/WebSecurityControllerImpl;->check(Lcom/just/agentweb/WebSecurityCheckLogic;)V

    return-void
.end method