Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3571)

Unified Diff: components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/DomDistillerService.java

Issue 442503002: Retrieve article original URL from entryID (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: string reference Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/DomDistillerService.java
diff --git a/components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/DomDistillerService.java b/components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/DomDistillerService.java
index e5b5cb8cddcadbab29f70aa79122bcbc85cd08de..ff098a6ec98b302af2f39d5986d66a7c41573396 100644
--- a/components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/DomDistillerService.java
+++ b/components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/DomDistillerService.java
@@ -27,12 +27,23 @@ public final class DomDistillerService {
return mDistilledPagePrefs;
}
+ public boolean hasEntry(String entryId) {
+ return nativeHasEntry(mDomDistillerServiceAndroid, entryId);
+ }
+
+ public String getUrlForEntry(String entryId) {
+ return nativeGetUrlForEntry(mDomDistillerServiceAndroid, entryId);
+ }
+
@CalledByNative
private static DomDistillerService create(long nativeDomDistillerServiceAndroid) {
ThreadUtils.assertOnUiThread();
return new DomDistillerService(nativeDomDistillerServiceAndroid);
}
+ private native boolean nativeHasEntry(long nativeDomDistillerServiceAndroid, String entryId);
+ private native String nativeGetUrlForEntry(
+ long nativeDomDistillerServiceAndroid, String entryId);
private static native long nativeGetDistilledPagePrefsPtr(
long nativeDomDistillerServiceAndroid);
}

Powered by Google App Engine
This is Rietveld 408576698