Index: components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/DomDistillerUrlUtils.java |
diff --git a/components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/DomDistillerUrlUtils.java b/components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/DomDistillerUrlUtils.java |
new file mode 100644 |
index 0000000000000000000000000000000000000000..598e299de89a19d860c27f6c72cdb2f0b5c9aa39 |
--- /dev/null |
+++ b/components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/DomDistillerUrlUtils.java |
@@ -0,0 +1,30 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+package org.chromium.components.dom_distiller.core; |
+ |
+import org.chromium.base.JNINamespace; |
+ |
+/** |
+ * Wrapper for the dom_distiller::url_utils. |
+ */ |
+@JNINamespace("dom_distiller::url_utils::android") |
+public final class DomDistillerUrlUtils { |
+ |
+ private DomDistillerUrlUtils() { |
+ } |
+ |
+ /** |
+ * Returns the URL for viewing distilled content for a URL. |
+ * |
+ * @param scheme The scheme for the DOM Distiller source. |
+ * @param url The URL to distill. |
+ * @return the URL to load to get the distilled version of a page. |
+ */ |
+ public static String getDistillerViewUrlFromUrl(String scheme, String url) { |
+ return nativeGetDistillerViewUrlFromUrl(scheme, url); |
+ } |
+ |
+ private static native String nativeGetDistillerViewUrlFromUrl(String scheme, String url); |
+} |