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

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

Issue 29331923: Issue 3364 - Implement JNI bindings for IsDocument/ElemhideWhitelisted (Closed)
Patch Set: Typo Created Dec. 4, 2015, 5:44 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 | « src/org/adblockplus/brazil/RequestHandler.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « src/org/adblockplus/brazil/RequestHandler.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld