Left: | ||
Right: |
OLD | NEW |
---|---|
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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
189 /** | 189 /** |
190 * Schedules updating of a subscription corresponding to the passed URL. | 190 * Schedules updating of a subscription corresponding to the passed URL. |
191 * @param subscriptionUrl may contain query parameters, only the beginning of the string is used | 191 * @param subscriptionUrl may contain query parameters, only the beginning of the string is used |
192 * to find a corresponding subscription. | 192 * to find a corresponding subscription. |
193 */ | 193 */ |
194 public void updateFiltersAsync(String subscriptionUrl) | 194 public void updateFiltersAsync(String subscriptionUrl) |
195 { | 195 { |
196 updateFiltersAsync(this.ptr, subscriptionUrl); | 196 updateFiltersAsync(this.ptr, subscriptionUrl); |
197 } | 197 } |
198 | 198 |
199 /** | |
200 * Get FilterEngine pointer | |
201 * @return C++ FilterEngine instance pointer | |
202 */ | |
203 public long getFilterEnginePtr() { | |
sergei
2017/09/26 12:04:29
Maybe call it `getNativePtr`?
anton
2017/09/26 12:18:40
Does not make sense for me, we can call it `getNat
sergei
2017/09/28 08:29:03
I don't insist, it's just my expectations of an AP
| |
204 return getFilterEnginePtr(this.ptr); | |
205 } | |
206 | |
199 private final static native void registerNatives(); | 207 private final static native void registerNatives(); |
200 | 208 |
201 private final static native boolean isFirstRun(long ptr); | 209 private final static native boolean isFirstRun(long ptr); |
202 | 210 |
203 private final static native Filter getFilter(long ptr, String text); | 211 private final static native Filter getFilter(long ptr, String text); |
204 | 212 |
205 private final static native List<Filter> getListedFilters(long ptr); | 213 private final static native List<Filter> getListedFilters(long ptr); |
206 | 214 |
207 private final static native Subscription getSubscription(long ptr, String url) ; | 215 private final static native Subscription getSubscription(long ptr, String url) ; |
208 | 216 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
246 | 254 |
247 private final static native String getAllowedConnectionType(long ptr); | 255 private final static native String getAllowedConnectionType(long ptr); |
248 | 256 |
249 private final static native void setAcceptableAdsEnabled(long ptr, boolean ena bled); | 257 private final static native void setAcceptableAdsEnabled(long ptr, boolean ena bled); |
250 | 258 |
251 private final static native boolean isAcceptableAdsEnabled(long ptr); | 259 private final static native boolean isAcceptableAdsEnabled(long ptr); |
252 | 260 |
253 private final static native String getAcceptableAdsSubscriptionURL(long ptr); | 261 private final static native String getAcceptableAdsSubscriptionURL(long ptr); |
254 | 262 |
255 private final static native void updateFiltersAsync(long ptr, String subscript ionUrl); | 263 private final static native void updateFiltersAsync(long ptr, String subscript ionUrl); |
264 | |
265 private final static native long getFilterEnginePtr(long ptr); | |
256 } | 266 } |
OLD | NEW |