Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: libadblockplus-android/src/org/adblockplus/libadblockplus/FilterEngine.java

Issue 29351744: Issue 4399 - Add WebView inheritor with ad blocking (Closed)
Patch Set: changed packages, now using AdblockEngine (original ABPEngine), improved demo app Created Oct. 25, 2016, 11:20 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: libadblockplus-android/src/org/adblockplus/libadblockplus/FilterEngine.java
diff --git a/libadblockplus-android/src/org/adblockplus/libadblockplus/FilterEngine.java b/libadblockplus-android/src/org/adblockplus/libadblockplus/FilterEngine.java
index 8bdb4e8d556e841f16e501ac71ef3742b35c1cb6..d7273597b67ebfdf5a8efb087f42d17201e72834 100644
--- a/libadblockplus-android/src/org/adblockplus/libadblockplus/FilterEngine.java
+++ b/libadblockplus-android/src/org/adblockplus/libadblockplus/FilterEngine.java
@@ -157,6 +157,11 @@ public final class FilterEngine implements Disposable
setPref(this.ptr, pref, value.ptr);
}
+ public String getHostFromURL(String url)
+ {
+ return getHostFromURL(this.ptr, url);
+ }
+
@Override
public void dispose()
{
@@ -225,5 +230,7 @@ public final class FilterEngine implements Disposable
private final static native void setPref(long ptr, String pref, long valuePtr);
+ private final static native String getHostFromURL(long ptr, String url);
+
private final static native void dtor(long ptr);
}

Powered by Google App Engine
This is Rietveld