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-2017 eyeo GmbH | 3 * Copyright (C) 2006-2017 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 public boolean isAcceptableAdsEnabled() | 189 public boolean isAcceptableAdsEnabled() |
190 { | 190 { |
191 return isAcceptableAdsEnabled(this.ptr); | 191 return isAcceptableAdsEnabled(this.ptr); |
192 } | 192 } |
193 | 193 |
194 public String getAcceptableAdsSubscriptionURL() | 194 public String getAcceptableAdsSubscriptionURL() |
195 { | 195 { |
196 return getAcceptableAdsSubscriptionURL(this.ptr); | 196 return getAcceptableAdsSubscriptionURL(this.ptr); |
197 } | 197 } |
198 | 198 |
199 /** | |
200 * Schedules updating of a subscription corresponding to the passed URL. | |
201 * @param subscriptionUrl may contain query parameters, only the beginning of the string is used | |
202 * to find a corresponding subscription. | |
203 */ | |
204 public void updateFiltersAsync(String subscriptionUrl) | |
anton
2017/06/15 05:51:53
i don't like the idea of having 'Subscription.upda
sergei
2017/06/16 11:12:08
When the request is intercepted there is no subscr
anton
2017/06/16 11:25:12
Acknowledged.
| |
205 { | |
206 updateFiltersAsync(this.ptr, subscriptionUrl); | |
207 } | |
208 | |
199 @Override | 209 @Override |
200 public void dispose() | 210 public void dispose() |
201 { | 211 { |
202 this.disposer.dispose(); | 212 this.disposer.dispose(); |
203 } | 213 } |
204 | 214 |
205 private final static class DisposeWrapper implements Disposable | 215 private final static class DisposeWrapper implements Disposable |
206 { | 216 { |
207 private final long ptr; | 217 private final long ptr; |
208 | 218 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
269 private final static native void setAllowedConnectionType(long ptr, String val ue); | 279 private final static native void setAllowedConnectionType(long ptr, String val ue); |
270 | 280 |
271 private final static native String getAllowedConnectionType(long ptr); | 281 private final static native String getAllowedConnectionType(long ptr); |
272 | 282 |
273 private final static native void setAcceptableAdsEnabled(long ptr, boolean ena bled); | 283 private final static native void setAcceptableAdsEnabled(long ptr, boolean ena bled); |
274 | 284 |
275 private final static native boolean isAcceptableAdsEnabled(long ptr); | 285 private final static native boolean isAcceptableAdsEnabled(long ptr); |
276 | 286 |
277 private final static native String getAcceptableAdsSubscriptionURL(long ptr); | 287 private final static native String getAcceptableAdsSubscriptionURL(long ptr); |
278 | 288 |
289 private final static native void updateFiltersAsync(long ptr, String subscript ionUrl); | |
290 | |
279 private final static native void dtor(long ptr); | 291 private final static native void dtor(long ptr); |
280 } | 292 } |
OLD | NEW |