Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / components / dom_distiller / android / java / src / org / chromium / components / dom_distiller / core / DomDistillerUrlUtils.java
index 598e299..60eda9e 100644 (file)
@@ -26,5 +26,21 @@ public final class DomDistillerUrlUtils {
         return nativeGetDistillerViewUrlFromUrl(scheme, url);
     }
 
+    /**
+     * Returns the original URL of a distillation given the viewer URL.
+     *
+     * @param url The current viewer URL.
+     * @return the URL of the original page.
+     */
+    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);
 }