alexandroid/decompiled/jadx/sources/androidx/webkit/internal/WebkitToCompatConverter.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

80 lines
4 KiB
Java

package androidx.webkit.internal;
import android.webkit.CookieManager;
import android.webkit.SafeBrowsingResponse;
import android.webkit.ServiceWorkerWebSettings;
import android.webkit.WebMessagePort;
import android.webkit.WebResourceError;
import android.webkit.WebResourceRequest;
import android.webkit.WebSettings;
import android.webkit.WebStorage;
import androidx.annotation.RequiresApi;
import java.lang.reflect.InvocationHandler;
import org.chromium.support_lib_boundary.WebResourceRequestBoundaryInterface;
import org.chromium.support_lib_boundary.WebSettingsBoundaryInterface;
import org.chromium.support_lib_boundary.WebStorageBoundaryInterface;
import org.chromium.support_lib_boundary.WebViewCookieManagerBoundaryInterface;
import org.chromium.support_lib_boundary.WebkitToCompatConverterBoundaryInterface;
import org.chromium.support_lib_boundary.util.BoundaryInterfaceReflectionUtil;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
/* loaded from: classes14.dex */
public class WebkitToCompatConverter {
private final WebkitToCompatConverterBoundaryInterface mImpl;
public WebkitToCompatConverter(WebkitToCompatConverterBoundaryInterface webkitToCompatConverterBoundaryInterface) {
this.mImpl = webkitToCompatConverterBoundaryInterface;
}
public CookieManagerAdapter convertCookieManager(CookieManager cookieManager) {
return new CookieManagerAdapter((WebViewCookieManagerBoundaryInterface) BoundaryInterfaceReflectionUtil.castToSuppLibClass(WebViewCookieManagerBoundaryInterface.class, this.mImpl.convertCookieManager(cookieManager)));
}
@RequiresApi(27)
public SafeBrowsingResponse convertSafeBrowsingResponse(InvocationHandler invocationHandler) {
return (SafeBrowsingResponse) this.mImpl.convertSafeBrowsingResponse(invocationHandler);
}
@RequiresApi(24)
public ServiceWorkerWebSettings convertServiceWorkerSettings(InvocationHandler invocationHandler) {
return (ServiceWorkerWebSettings) this.mImpl.convertServiceWorkerSettings(invocationHandler);
}
public WebSettingsAdapter convertSettings(WebSettings webSettings) {
return new WebSettingsAdapter((WebSettingsBoundaryInterface) BoundaryInterfaceReflectionUtil.castToSuppLibClass(WebSettingsBoundaryInterface.class, this.mImpl.convertSettings(webSettings)));
}
@RequiresApi(23)
public WebMessagePort convertWebMessagePort(InvocationHandler invocationHandler) {
return (WebMessagePort) this.mImpl.convertWebMessagePort(invocationHandler);
}
@RequiresApi(23)
public WebResourceError convertWebResourceError(InvocationHandler invocationHandler) {
return (WebResourceError) this.mImpl.convertWebResourceError(invocationHandler);
}
public WebResourceRequestAdapter convertWebResourceRequest(WebResourceRequest webResourceRequest) {
return new WebResourceRequestAdapter((WebResourceRequestBoundaryInterface) BoundaryInterfaceReflectionUtil.castToSuppLibClass(WebResourceRequestBoundaryInterface.class, this.mImpl.convertWebResourceRequest(webResourceRequest)));
}
public WebStorageAdapter convertWebStorage(WebStorage webStorage) {
return new WebStorageAdapter((WebStorageBoundaryInterface) BoundaryInterfaceReflectionUtil.castToSuppLibClass(WebStorageBoundaryInterface.class, this.mImpl.convertWebStorage(webStorage)));
}
public InvocationHandler convertSafeBrowsingResponse(SafeBrowsingResponse safeBrowsingResponse) {
return this.mImpl.convertSafeBrowsingResponse(safeBrowsingResponse);
}
public InvocationHandler convertServiceWorkerSettings(ServiceWorkerWebSettings serviceWorkerWebSettings) {
return this.mImpl.convertServiceWorkerSettings(serviceWorkerWebSettings);
}
public InvocationHandler convertWebMessagePort(WebMessagePort webMessagePort) {
return this.mImpl.convertWebMessagePort(webMessagePort);
}
public InvocationHandler convertWebResourceError(WebResourceError webResourceError) {
return this.mImpl.convertWebResourceError(webResourceError);
}
}