This source file includes following definitions.
- JNINamespace
- getDistillerViewUrlFromUrl
- getOriginalUrlFromDistillerUrl
- isUrlReportable
- nativeGetDistillerViewUrlFromUrl
- nativeGetOriginalUrlFromDistillerUrl
- nativeIsUrlReportable
package org.chromium.components.dom_distiller.core;
import org.chromium.base.JNINamespace;
@JNINamespace("dom_distiller::url_utils::android")
public final class DomDistillerUrlUtils {
private DomDistillerUrlUtils() {
}
public static String getDistillerViewUrlFromUrl(String scheme, String url) {
return nativeGetDistillerViewUrlFromUrl(scheme, url);
}
public static String getOriginalUrlFromDistillerUrl(String url) {
return nativeGetOriginalUrlFromDistillerUrl(url);
}
public static boolean isUrlReportable(String scheme, String url) {
return nativeIsUrlReportable(scheme, url);
}
private static native String nativeGetDistillerViewUrlFromUrl(String scheme, String url);
private static native String nativeGetOriginalUrlFromDistillerUrl(String viewerUrl);
private static native boolean nativeIsUrlReportable(String scheme, String url);
}