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

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: Added comments 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..3260302719b01c910e79fff4c85f09195019f36a 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,22 @@ 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);
robliao 2014/08/13 23:43:15 Linebreak above here.
sunangel 2014/08/13 23:47:15 Done.
+ private native String nativeGetUrlForEntry(
+ long nativeDomDistillerServiceAndroid, String entryId);
private static native long nativeGetDistilledPagePrefsPtr(
long nativeDomDistillerServiceAndroid);
}

Powered by Google App Engine
This is Rietveld 408576698