mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-17 03:17:17 +01:00
26 lines
1.1 KiB
Java
26 lines
1.1 KiB
Java
package androidx.webkit.internal;
|
|
|
|
import android.webkit.WebResourceRequest;
|
|
import android.webkit.WebResourceResponse;
|
|
import androidx.webkit.ServiceWorkerClientCompat;
|
|
import org.chromium.support_lib_boundary.ServiceWorkerClientBoundaryInterface;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes14.dex */
|
|
public class ServiceWorkerClientAdapter implements ServiceWorkerClientBoundaryInterface {
|
|
private final ServiceWorkerClientCompat mClient;
|
|
|
|
public ServiceWorkerClientAdapter(ServiceWorkerClientCompat serviceWorkerClientCompat) {
|
|
this.mClient = serviceWorkerClientCompat;
|
|
}
|
|
|
|
@Override // org.chromium.support_lib_boundary.FeatureFlagHolderBoundaryInterface
|
|
public String[] getSupportedFeatures() {
|
|
return new String[]{"SERVICE_WORKER_SHOULD_INTERCEPT_REQUEST"};
|
|
}
|
|
|
|
@Override // org.chromium.support_lib_boundary.ServiceWorkerClientBoundaryInterface
|
|
public WebResourceResponse shouldInterceptRequest(WebResourceRequest webResourceRequest) {
|
|
return this.mClient.shouldInterceptRequest(webResourceRequest);
|
|
}
|
|
}
|