- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
31 lines
1.2 KiB
Java
31 lines
1.2 KiB
Java
package androidx.webkit.internal;
|
|
|
|
import android.webkit.WebResourceRequest;
|
|
import android.webkit.WebResourceResponse;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import androidx.webkit.ServiceWorkerClientCompat;
|
|
import androidx.webkit.WebViewFeature;
|
|
import org.chromium.support_lib_boundary.ServiceWorkerClientBoundaryInterface;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class ServiceWorkerClientAdapter implements ServiceWorkerClientBoundaryInterface {
|
|
private final ServiceWorkerClientCompat mClient;
|
|
|
|
@Override // org.chromium.support_lib_boundary.FeatureFlagHolderBoundaryInterface
|
|
@NonNull
|
|
public String[] getSupportedFeatures() {
|
|
return new String[]{WebViewFeature.SERVICE_WORKER_SHOULD_INTERCEPT_REQUEST};
|
|
}
|
|
|
|
public ServiceWorkerClientAdapter(@NonNull ServiceWorkerClientCompat serviceWorkerClientCompat) {
|
|
this.mClient = serviceWorkerClientCompat;
|
|
}
|
|
|
|
@Override // org.chromium.support_lib_boundary.ServiceWorkerClientBoundaryInterface
|
|
@Nullable
|
|
public WebResourceResponse shouldInterceptRequest(@NonNull WebResourceRequest webResourceRequest) {
|
|
return this.mClient.shouldInterceptRequest(webResourceRequest);
|
|
}
|
|
}
|