package com.tencent.mm.plugin.webview.ui.tools.game;

import android.graphics.Bitmap;
import android.os.Bundle;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.webview.ui.tools.game.GameBaseWebViewUI.a;
import com.tencent.xweb.WebView;
import com.tencent.xweb.n;
import com.tencent.xweb.o;

class GameWebViewUI$c extends a {
    final /* synthetic */ GameWebViewUI uEh;

    private GameWebViewUI$c(GameWebViewUI gameWebViewUI) {
        this.uEh = gameWebViewUI;
        super(gameWebViewUI);
    }

    /* synthetic */ GameWebViewUI$c(GameWebViewUI gameWebViewUI, byte b) {
        this(gameWebViewUI);
    }

    public final void b(WebView webView, String str, Bitmap bitmap) {
        AppMethodBeat.i(8734);
        if (GameWebViewUI.M(this.uEh).eCf == 0) {
            GameWebViewUI.M(this.uEh).eCf = System.currentTimeMillis();
        }
        if (GameWebViewUI.N(this.uEh).uDM == 0) {
            GameWebViewUI.N(this.uEh).uDM = System.currentTimeMillis();
        }
        GameWebViewUI.j(this.uEh).j(webView, str);
        super.b(webView, str, bitmap);
        AppMethodBeat.o(8734);
    }

    public final void b(WebView webView, String str) {
        AppMethodBeat.i(8735);
        if (GameWebViewUI.M(this.uEh).eCg == 0) {
            GameWebViewUI.M(this.uEh).eCg = System.currentTimeMillis();
        }
        if (GameWebViewUI.N(this.uEh).uDN == 0) {
            GameWebViewUI.N(this.uEh).uDN = System.currentTimeMillis();
        }
        GameWebViewUI.O(this.uEh);
        GameWebViewUI.j(this.uEh).k(webView, str);
        super.b(webView, str);
        AppMethodBeat.o(8735);
    }

    public final void a(WebView webView, int i, String str, String str2) {
        AppMethodBeat.i(8736);
        GameWebViewUI.O(this.uEh);
        super.a(webView, i, str, str2);
        AppMethodBeat.o(8736);
    }

    public final o c(WebView webView, String str) {
        AppMethodBeat.i(8737);
        o ahA = GameWebViewUI.j(this.uEh).ahA(str);
        if (ahA != null) {
            AppMethodBeat.o(8737);
            return ahA;
        }
        ahA = super.c(webView, str);
        AppMethodBeat.o(8737);
        return ahA;
    }

    public final o a(WebView webView, n nVar) {
        AppMethodBeat.i(8738);
        o a;
        if (nVar == null || nVar.getUrl() == null) {
            a = super.a(webView, nVar);
            AppMethodBeat.o(8738);
            return a;
        }
        a = GameWebViewUI.j(this.uEh).ahA(nVar.getUrl().toString());
        if (a != null) {
            AppMethodBeat.o(8738);
            return a;
        }
        a = super.a(webView, nVar);
        AppMethodBeat.o(8738);
        return a;
    }

    public final o a(WebView webView, n nVar, Bundle bundle) {
        AppMethodBeat.i(8739);
        o a;
        if (nVar == null || nVar.getUrl() == null) {
            a = super.a(webView, nVar);
            AppMethodBeat.o(8739);
            return a;
        }
        a = GameWebViewUI.j(this.uEh).ahA(nVar.getUrl().toString());
        if (a != null) {
            AppMethodBeat.o(8739);
            return a;
        }
        a = super.a(webView, nVar, bundle);
        AppMethodBeat.o(8739);
        return a;
    }
}
