package com.tencent.mm.plugin.game.luggage.d;

import android.webkit.ConsoleMessage;
import com.tencent.luggage.g.d;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.webview.luggage.c;
import com.tencent.mm.plugin.webview.luggage.c.b;
import com.tencent.xweb.WebView;

public class d$a extends c {
    final /* synthetic */ d mUS;

    public d$a(d dVar) {
        this.mUS = dVar;
    }

    public final void d(WebView webView, String str) {
        AppMethodBeat.i(135934);
        d.i("MicroMsg.GameWebCoreImpl", "onReceivedTitle, title = %s", new Object[]{str});
        if (!b.Ed(str)) {
            d.a(this.mUS, str);
        }
        super.d(webView, str);
        AppMethodBeat.o(135934);
    }

    public final boolean onConsoleMessage(ConsoleMessage consoleMessage) {
        AppMethodBeat.i(135935);
        if (d.h(this.mUS) != null) {
            d.h(this.mUS).a(consoleMessage);
        }
        boolean onConsoleMessage = super.onConsoleMessage(consoleMessage);
        AppMethodBeat.o(135935);
        return onConsoleMessage;
    }
}
