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

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

Issue 29908555: Issue 7035 - Update libadblockplus dependency (Closed) Base URL: git@github.com:adblockplus/libadblockplus-android.git@d150f08d5d72de8938c7ebbdccd9b0c4e06b4070
Left Patch Set: Issue 7035 - Update libadblockplus dependency Created Oct. 12, 2018, 12:06 p.m.
Right Patch Set: Issue 7035 - Update libadblockplus dependency Created Oct. 16, 2018, 3:17 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
LEFTRIGHT
(no file at all)
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-present eyeo GmbH 3 * Copyright (C) 2006-present 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 public List<Subscription> getListedSubscriptions() 64 public List<Subscription> getListedSubscriptions()
65 { 65 {
66 return getListedSubscriptions(this.ptr); 66 return getListedSubscriptions(this.ptr);
67 } 67 }
68 68
69 public List<Subscription> fetchAvailableSubscriptions() 69 public List<Subscription> fetchAvailableSubscriptions()
70 { 70 {
71 return fetchAvailableSubscriptions(this.ptr); 71 return fetchAvailableSubscriptions(this.ptr);
72 } 72 }
73 73
74 public void removeUpdateAvailableCallback()
75 {
76 removeUpdateAvailableCallback(this.ptr);
77 }
78
79 public void setUpdateAvailableCallback(final UpdateAvailableCallback callback)
80 {
81 setUpdateAvailableCallback(this.ptr, callback.ptr);
82 }
83
84 public void removeFilterChangeCallback() 74 public void removeFilterChangeCallback()
85 { 75 {
86 removeFilterChangeCallback(this.ptr); 76 removeFilterChangeCallback(this.ptr);
87 } 77 }
88 78
89 public void setFilterChangeCallback(final FilterChangeCallback callback) 79 public void setFilterChangeCallback(final FilterChangeCallback callback)
90 { 80 {
91 setFilterChangeCallback(this.ptr, callback.ptr); 81 setFilterChangeCallback(this.ptr, callback.ptr);
92 }
93
94 public void forceUpdateCheck()
95 {
96 forceUpdateCheck(this.ptr, 0);
97 }
98
99 public void forceUpdateCheck(final UpdateCheckDoneCallback callback)
100 {
101 forceUpdateCheck(this.ptr, callback != null ? callback.ptr : 0);
102 } 82 }
103 83
104 public List<String> getElementHidingSelectors(final String domain) 84 public List<String> getElementHidingSelectors(final String domain)
105 { 85 {
106 return getElementHidingSelectors(this.ptr, domain); 86 return getElementHidingSelectors(this.ptr, domain);
107 } 87 }
108 88
109 public void showNextNotification(final String url) 89 public void showNextNotification(final String url)
110 { 90 {
111 showNextNotification(this.ptr, url); 91 showNextNotification(this.ptr, url);
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 private final static native Filter getFilter(long ptr, String text); 191 private final static native Filter getFilter(long ptr, String text);
212 192
213 private final static native List<Filter> getListedFilters(long ptr); 193 private final static native List<Filter> getListedFilters(long ptr);
214 194
215 private final static native Subscription getSubscription(long ptr, String url) ; 195 private final static native Subscription getSubscription(long ptr, String url) ;
216 196
217 private final static native List<Subscription> getListedSubscriptions(long ptr ); 197 private final static native List<Subscription> getListedSubscriptions(long ptr );
218 198
219 private final static native List<Subscription> fetchAvailableSubscriptions(lon g ptr); 199 private final static native List<Subscription> fetchAvailableSubscriptions(lon g ptr);
220 200
221 private final static native void removeUpdateAvailableCallback(long ptr);
222
223 private final static native void setUpdateAvailableCallback(long ptr, long fil terPtr);
224
225 private final static native void removeFilterChangeCallback(long ptr); 201 private final static native void removeFilterChangeCallback(long ptr);
226 202
227 private final static native void setFilterChangeCallback(long ptr, long filter Ptr); 203 private final static native void setFilterChangeCallback(long ptr, long filter Ptr);
228
229 private final static native void forceUpdateCheck(long ptr, long updatePtr);
230 204
231 private final static native List<String> getElementHidingSelectors(long ptr, S tring domain); 205 private final static native List<String> getElementHidingSelectors(long ptr, S tring domain);
232 206
233 private final static native void showNextNotification(long ptr, String url); 207 private final static native void showNextNotification(long ptr, String url);
234 208
235 private final static native void setShowNotificationCallback(long ptr, long ca llbackPtr); 209 private final static native void setShowNotificationCallback(long ptr, long ca llbackPtr);
236 210
237 private final static native void removeShowNotificationCallback(long ptr); 211 private final static native void removeShowNotificationCallback(long ptr);
238 212
239 private final static native JsValue getPref(long ptr, String pref); 213 private final static native JsValue getPref(long ptr, String pref);
(...skipping 17 matching lines...) Expand all
257 private final static native void setAcceptableAdsEnabled(long ptr, boolean ena bled); 231 private final static native void setAcceptableAdsEnabled(long ptr, boolean ena bled);
258 232
259 private final static native boolean isAcceptableAdsEnabled(long ptr); 233 private final static native boolean isAcceptableAdsEnabled(long ptr);
260 234
261 private final static native String getAcceptableAdsSubscriptionURL(long ptr); 235 private final static native String getAcceptableAdsSubscriptionURL(long ptr);
262 236
263 private final static native void updateFiltersAsync(long ptr, String subscript ionUrl); 237 private final static native void updateFiltersAsync(long ptr, String subscript ionUrl);
264 238
265 private final static native long getNativePtr(long ptr); 239 private final static native long getNativePtr(long ptr);
266 } 240 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld