package com.tencent.mm.plugin.game.model;

import android.os.Bundle;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.ipcinvoker.a;
import com.tencent.mm.ipcinvoker.c;
import com.tencent.mm.plugin.wepkg.ipc.WepkgMainProcessService;
import com.tencent.mm.plugin.wepkg.utils.b;
import com.tencent.mm.plugin.wepkg.utils.d;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.ah;

class aw$a implements a<Bundle, Bundle> {
    private aw$a() {
    }

    public final /* synthetic */ void a(Object obj, c cVar) {
        AppMethodBeat.i(111474);
        Bundle bundle = (Bundle) obj;
        if (bundle == null) {
            if (cVar != null) {
                cVar.ao(bundle);
            }
            AppMethodBeat.o(111474);
            return;
        }
        b.uXV = bundle.getBoolean("is_wepkg_disable");
        String string = bundle.getString("call_raw_url");
        boolean z = bundle.getBoolean("preload_webcore", false);
        if (z) {
            ab.i("MicroMsg.Wepkg.NotifyGameWebviewOperationListener", "preload webcore");
        }
        ab.i("MicroMsg.Wepkg.NotifyGameWebviewOperationListener", "preload entrance url:%s, isToolsProcess:%b, isToolsMpProcess:%b", new Object[]{string, Boolean.valueOf(ah.doF()), Boolean.valueOf(ah.doG())});
        if (WepkgMainProcessService.isLive()) {
            ab.i("MicroMsg.Wepkg.NotifyGameWebviewOperationListener", "preload wepkg");
            d.aNS().aa(new 1(this, bundle, z, cVar));
            AppMethodBeat.o(111474);
            return;
        }
        ab.i("MicroMsg.Wepkg.NotifyGameWebviewOperationListener", "prestart WepkgMainProcessService and preload wepkg");
        d.b(string, new 2(this, bundle, z, cVar));
        AppMethodBeat.o(111474);
    }
}
