mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-17 03:17:17 +01:00
80 lines
4 KiB
Java
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);
|
|
}
|
|
}
|