Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / chrome / android / java / src / org / chromium / chrome / browser / dom_distiller / DomDistillerTabUtils.java
index ed76812..8b11b09 100644 (file)
@@ -27,5 +27,16 @@ public class DomDistillerTabUtils {
         nativeDistillCurrentPageAndView(webContents);
     }
 
+    /**
+     * Returns the formatted version of the original URL of a distillation, given the original URL.
+     *
+     * @param url The original URL.
+     * @return the formatted URL of the original page.
+     */
+    public static String getFormattedUrlFromOriginalDistillerUrl(String url) {
+        return nativeGetFormattedUrlFromOriginalDistillerUrl(url);
+    }
+
     private static native void nativeDistillCurrentPageAndView(WebContents webContents);
+    private static native String nativeGetFormattedUrlFromOriginalDistillerUrl(String url);
 }