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

Delta Between Two Patch Sets: src/org/adblockplus/libadblockplus/FilterEngine.java

Issue 29331923: Issue 3364 - Implement JNI bindings for IsDocument/ElemhideWhitelisted (Closed)
Left Patch Set: Created Dec. 4, 2015, 3:14 p.m.
Right Patch Set: Typo Created Dec. 4, 2015, 5:44 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « src/org/adblockplus/brazil/RequestHandler.java ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 public void forceUpdateCheck() 95 public void forceUpdateCheck()
96 { 96 {
97 forceUpdateCheck(this.ptr, 0); 97 forceUpdateCheck(this.ptr, 0);
98 } 98 }
99 99
100 public void forceUpdateCheck(final UpdateCheckDoneCallback callback) 100 public void forceUpdateCheck(final UpdateCheckDoneCallback callback)
101 { 101 {
102 forceUpdateCheck(this.ptr, callback != null ? callback.ptr : 0); 102 forceUpdateCheck(this.ptr, callback != null ? callback.ptr : 0);
103 } 103 }
104 104
105 public List<String> getElementHidingSelectors(final String url) 105 public List<String> getElementHidingSelectors(final String domain)
106 { 106 {
107 return getElementHidingSelectors(this.ptr, url); 107 return getElementHidingSelectors(this.ptr, domain);
108 } 108 }
109 109
110 public void showNextNotification(final String url) 110 public void showNextNotification(final String url)
111 { 111 {
112 showNextNotification(this.ptr, url); 112 showNextNotification(this.ptr, url);
113 } 113 }
114 114
115 public void showNextNotification() 115 public void showNextNotification()
116 { 116 {
117 showNextNotification(this.ptr, null); 117 showNextNotification(this.ptr, null);
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 private final static native void removeUpdateAvailableCallback(long ptr); 198 private final static native void removeUpdateAvailableCallback(long ptr);
199 199
200 private final static native void setUpdateAvailableCallback(long ptr, long fil terPtr); 200 private final static native void setUpdateAvailableCallback(long ptr, long fil terPtr);
201 201
202 private final static native void removeFilterChangeCallback(long ptr); 202 private final static native void removeFilterChangeCallback(long ptr);
203 203
204 private final static native void setFilterChangeCallback(long ptr, long filter Ptr); 204 private final static native void setFilterChangeCallback(long ptr, long filter Ptr);
205 205
206 private final static native void forceUpdateCheck(long ptr, long updatePtr); 206 private final static native void forceUpdateCheck(long ptr, long updatePtr);
207 207
208 private final static native List<String> getElementHidingSelectors(long ptr, S tring url); 208 private final static native List<String> getElementHidingSelectors(long ptr, S tring domain);
209 209
210 private final static native void showNextNotification(long ptr, String url); 210 private final static native void showNextNotification(long ptr, String url);
211 211
212 private final static native void setShowNotificationCallback(long ptr, long ca llbackPtr); 212 private final static native void setShowNotificationCallback(long ptr, long ca llbackPtr);
213 213
214 private final static native void removeShowNotificationCallback(long ptr); 214 private final static native void removeShowNotificationCallback(long ptr);
215 215
216 private final static native JsValue getPref(long ptr, String pref); 216 private final static native JsValue getPref(long ptr, String pref);
217 217
218 private final static native Filter matches(long ptr, String url, ContentType c ontentType, String documentUrl); 218 private final static native Filter matches(long ptr, String url, ContentType c ontentType, String documentUrl);
219 219
220 private final static native Filter matches(long ptr, String url, ContentType c ontentType, String[] documentUrls); 220 private final static native Filter matches(long ptr, String url, ContentType c ontentType, String[] documentUrls);
221 221
222 private final static native boolean isDocumentWhitelisted(long ptr, String url , String[] documentUrls); 222 private final static native boolean isDocumentWhitelisted(long ptr, String url , String[] documentUrls);
223 223
224 private final static native boolean isElemhideWhitelisted(long ptr, String url , String[] documentUrls); 224 private final static native boolean isElemhideWhitelisted(long ptr, String url , String[] documentUrls);
225 225
226 private final static native void setPref(long ptr, String pref, long valuePtr) ; 226 private final static native void setPref(long ptr, String pref, long valuePtr) ;
227 227
228 private final static native void dtor(long ptr); 228 private final static native void dtor(long ptr);
229 } 229 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld