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: fixed #4543 Created Oct. 17, 2016, 2:43 p.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
« no previous file with comments | « libadblockplus-android/src/org/adblockplus/android/Utils.java ('k') | pom.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « libadblockplus-android/src/org/adblockplus/android/Utils.java ('k') | pom.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld