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

Side by Side Diff: libadblockplus-android/src/org/adblockplus/libadblockplus/FilterEngine.java

Issue 29465639: Issue 5309 - Subscriptions update causes ANR (Closed) Base URL: github.com:abby-sergz/libadblockplus-android.git
Patch Set: rebase Created July 5, 2017, 1:47 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
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
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)
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld