Index: src/org/adblockplus/libadblockplus/FilterEngine.java |
diff --git a/src/org/adblockplus/libadblockplus/FilterEngine.java b/src/org/adblockplus/libadblockplus/FilterEngine.java |
index 2849141e449217f83d8b560495c6e4ddd80eff52..64c15aafc8f56952b6622953751407461dba752f 100644 |
--- a/src/org/adblockplus/libadblockplus/FilterEngine.java |
+++ b/src/org/adblockplus/libadblockplus/FilterEngine.java |
@@ -137,6 +137,16 @@ public final class FilterEngine implements Disposable |
return matches(this.ptr, url, contentType, documentUrls); |
} |
+ public boolean isDocumentWhitelisted(String url, String[] documentUrls) |
+ { |
+ return isDocumentWhitelisted(this.ptr, url, documentUrls); |
+ } |
+ |
+ public boolean isElemhideWhitelisted(String url, String[] documentUrls) |
+ { |
+ return isElemhideWhitelisted(this.ptr, url, documentUrls); |
+ } |
+ |
public JsValue getPref(final String pref) |
{ |
return getPref(this.ptr, pref); |
@@ -209,6 +219,10 @@ public final class FilterEngine implements Disposable |
private final static native Filter matches(long ptr, String url, ContentType contentType, String[] documentUrls); |
+ private final static native boolean isDocumentWhitelisted(long ptr, String url, String[] documentUrls); |
+ |
+ private final static native boolean isElemhideWhitelisted(long ptr, String url, String[] documentUrls); |
+ |
private final static native void setPref(long ptr, String pref, long valuePtr); |
private final static native void dtor(long ptr); |