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

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

Issue 29556626: Issue 5790 - Get ready for integration into Chromium (Closed)
Patch Set: Renamed to getNativePtr() Created Sept. 28, 2017, 9:08 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « libadblockplus-android/jni/JniFilterEngine.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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-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
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 (AdblockPlus::FilterEngine*)
202 */
203 public long getNativePtr() {
204 return getNativePtr(this.ptr);
205 }
diegocarloslima 2017/09/28 11:55:30 Well, this ain't a good practice to expose/share n
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
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 getNativePtr(long ptr);
256 } 266 }
OLDNEW
« no previous file with comments | « libadblockplus-android/jni/JniFilterEngine.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld