- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
75 lines
2.7 KiB
Java
75 lines
2.7 KiB
Java
package com.ironsource;
|
|
|
|
import android.annotation.TargetApi;
|
|
import android.webkit.RenderProcessGoneDetail;
|
|
import android.webkit.WebResourceError;
|
|
import android.webkit.WebResourceRequest;
|
|
import android.webkit.WebResourceResponse;
|
|
import android.webkit.WebView;
|
|
import android.webkit.WebViewClient;
|
|
import com.ironsource.hg;
|
|
import com.ironsource.mediationsdk.logger.IronLog;
|
|
import com.ironsource.sdk.utils.Logger;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class nf extends WebViewClient {
|
|
private static final String b = "nf";
|
|
private final hg.a a;
|
|
|
|
public nf(hg.a aVar) {
|
|
this.a = aVar;
|
|
}
|
|
|
|
private String a(String str, String str2) {
|
|
return "ISNAdViewWebClient | External Adunit failed to load." + str + " Status code: " + str2;
|
|
}
|
|
|
|
@Override // android.webkit.WebViewClient
|
|
public void onReceivedError(WebView webView, int i, String str, String str2) {
|
|
try {
|
|
this.a.a(a("onReceivedError", String.valueOf(i)));
|
|
} catch (Exception e) {
|
|
i9.d().a(e);
|
|
IronLog.INTERNAL.error(e.toString());
|
|
}
|
|
super.onReceivedError(webView, i, str, str2);
|
|
}
|
|
|
|
@Override // android.webkit.WebViewClient
|
|
@TargetApi(23)
|
|
public void onReceivedError(WebView webView, WebResourceRequest webResourceRequest, WebResourceError webResourceError) {
|
|
try {
|
|
this.a.a(a("onReceivedErrorM", String.valueOf(webResourceError.getErrorCode())));
|
|
} catch (Exception e) {
|
|
i9.d().a(e);
|
|
IronLog.INTERNAL.error(e.toString());
|
|
}
|
|
super.onReceivedError(webView, webResourceRequest, webResourceError);
|
|
}
|
|
|
|
@Override // android.webkit.WebViewClient
|
|
public void onReceivedHttpError(WebView webView, WebResourceRequest webResourceRequest, WebResourceResponse webResourceResponse) {
|
|
try {
|
|
this.a.a(a("onReceivedHttpError", String.valueOf(webResourceResponse.getStatusCode())));
|
|
} catch (Exception e) {
|
|
i9.d().a(e);
|
|
IronLog.INTERNAL.error(e.toString());
|
|
}
|
|
super.onReceivedHttpError(webView, webResourceRequest, webResourceResponse);
|
|
}
|
|
|
|
@Override // android.webkit.WebViewClient
|
|
@TargetApi(26)
|
|
public boolean onRenderProcessGone(WebView webView, RenderProcessGoneDetail renderProcessGoneDetail) {
|
|
try {
|
|
Logger.e(b, "Chromium process crashed - detail.didCrash():" + renderProcessGoneDetail.didCrash());
|
|
this.a.b(renderProcessGoneDetail.didCrash() ? "Render process was observed to crash" : "Render process was killed by the system");
|
|
return true;
|
|
} catch (Exception e) {
|
|
i9.d().a(e);
|
|
IronLog.INTERNAL.error(e.toString());
|
|
return true;
|
|
}
|
|
}
|
|
}
|