- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
27 lines
937 B
Java
27 lines
937 B
Java
package androidx.webkit;
|
|
|
|
import android.webkit.CookieManager;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.webkit.internal.CookieManagerAdapter;
|
|
import androidx.webkit.internal.WebViewFeatureInternal;
|
|
import androidx.webkit.internal.WebViewGlueCommunicator;
|
|
import java.util.List;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class CookieManagerCompat {
|
|
private CookieManagerCompat() {
|
|
}
|
|
|
|
@NonNull
|
|
public static List<String> getCookieInfo(@NonNull CookieManager cookieManager, @NonNull String str) {
|
|
if (WebViewFeatureInternal.GET_COOKIE_INFO.isSupportedByWebView()) {
|
|
return getAdapter(cookieManager).getCookieInfo(str);
|
|
}
|
|
throw WebViewFeatureInternal.getUnsupportedOperationException();
|
|
}
|
|
|
|
private static CookieManagerAdapter getAdapter(CookieManager cookieManager) {
|
|
return WebViewGlueCommunicator.getCompatConverter().convertCookieManager(cookieManager);
|
|
}
|
|
}
|