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

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

Issue 5153282527854592: Issue 98 - Use the libadblockplus update mechanism (Closed)
Patch Set: Only append the revision to the version for devbuilds Created Sept. 26, 2014, 2:54 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 <http://adblockplus.org/>, 2 * This file is part of Adblock Plus <http://adblockplus.org/>,
3 * Copyright (C) 2006-2014 Eyeo GmbH 3 * Copyright (C) 2006-2014 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 public List<Subscription> getListedSubscriptions() 65 public List<Subscription> getListedSubscriptions()
66 { 66 {
67 return getListedSubscriptions(this.ptr); 67 return getListedSubscriptions(this.ptr);
68 } 68 }
69 69
70 public List<Subscription> fetchAvailableSubscriptions() 70 public List<Subscription> fetchAvailableSubscriptions()
71 { 71 {
72 return fetchAvailableSubscriptions(this.ptr); 72 return fetchAvailableSubscriptions(this.ptr);
73 } 73 }
74 74
75 public void removeUpdateAvailableCallback()
76 {
77 removeUpdateAvailableCallback(this.ptr);
78 }
79
80 public void setUpdateAvailableCallback(final UpdateAvailableCallback callback)
81 {
82 setUpdateAvailableCallback(this.ptr, callback.ptr);
83 }
84
75 public void removeFilterChangeCallback() 85 public void removeFilterChangeCallback()
76 { 86 {
77 removeFilterChangeCallback(this.ptr); 87 removeFilterChangeCallback(this.ptr);
78 } 88 }
79 89
80 public void setFilterChangeCallback(final FilterChangeCallback callback) 90 public void setFilterChangeCallback(final FilterChangeCallback callback)
81 { 91 {
82 setFilterChangeCallback(this.ptr, callback.ptr); 92 setFilterChangeCallback(this.ptr, callback.ptr);
83 } 93 }
84 94
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 private final static native Filter getFilter(long ptr, String text); 158 private final static native Filter getFilter(long ptr, String text);
149 159
150 private final static native List<Filter> getListedFilters(long ptr); 160 private final static native List<Filter> getListedFilters(long ptr);
151 161
152 private final static native Subscription getSubscription(long ptr, String url) ; 162 private final static native Subscription getSubscription(long ptr, String url) ;
153 163
154 private final static native List<Subscription> getListedSubscriptions(long ptr ); 164 private final static native List<Subscription> getListedSubscriptions(long ptr );
155 165
156 private final static native List<Subscription> fetchAvailableSubscriptions(lon g ptr); 166 private final static native List<Subscription> fetchAvailableSubscriptions(lon g ptr);
157 167
168 private final static native void removeUpdateAvailableCallback(long ptr);
169
170 private final static native void setUpdateAvailableCallback(long ptr, long fil terPtr);
171
158 private final static native void removeFilterChangeCallback(long ptr); 172 private final static native void removeFilterChangeCallback(long ptr);
159 173
160 private final static native void setFilterChangeCallback(long ptr, long filter Ptr); 174 private final static native void setFilterChangeCallback(long ptr, long filter Ptr);
161 175
162 private final static native void forceUpdateCheck(long ptr, long updatePtr); 176 private final static native void forceUpdateCheck(long ptr, long updatePtr);
163 177
164 private final static native List<String> getElementHidingSelectors(long ptr, S tring domain); 178 private final static native List<String> getElementHidingSelectors(long ptr, S tring domain);
165 179
166 private final static native JsValue getPref(long ptr, String pref); 180 private final static native JsValue getPref(long ptr, String pref);
167 181
168 private final static native Filter matches(long ptr, String url, ContentType c ontentType, String documentUrl); 182 private final static native Filter matches(long ptr, String url, ContentType c ontentType, String documentUrl);
169 183
170 private final static native Filter matches(long ptr, String url, ContentType c ontentType, String[] documentUrls); 184 private final static native Filter matches(long ptr, String url, ContentType c ontentType, String[] documentUrls);
171 185
172 private final static native void setPref(long ptr, String pref, long valuePtr) ; 186 private final static native void setPref(long ptr, String pref, long valuePtr) ;
173 187
174 private final static native void dtor(long ptr); 188 private final static native void dtor(long ptr);
175 } 189 }
OLDNEW

Powered by Google App Engine
This is Rietveld