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

Delta Between Two Patch Sets: libadblockplus-android/src/org/adblockplus/libadblockplus/FilterEngine.java

Issue 29351744: Issue 4399 - Add WebView inheritor with ad blocking (Closed)
Left Patch Set: moved from experimental gradle plugin to standard one (with new ndk support) Created Oct. 7, 2016, 9:48 a.m.
Right Patch Set: changed packages, now using AdblockEngine (original ABPEngine), improved demo app Created Oct. 25, 2016, 11:20 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
LEFTRIGHT
(no file at all)
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-2016 Eyeo GmbH 3 * Copyright (C) 2006-2016 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 public JsValue getPref(final String pref) 150 public JsValue getPref(final String pref)
151 { 151 {
152 return getPref(this.ptr, pref); 152 return getPref(this.ptr, pref);
153 } 153 }
154 154
155 public void setPref(final String pref, final JsValue value) 155 public void setPref(final String pref, final JsValue value)
156 { 156 {
157 setPref(this.ptr, pref, value.ptr); 157 setPref(this.ptr, pref, value.ptr);
158 } 158 }
159 159
160 public String getHostFromURL(String url)
161 {
162 return getHostFromURL(this.ptr, url);
163 }
164
160 @Override 165 @Override
161 public void dispose() 166 public void dispose()
162 { 167 {
163 this.disposer.dispose(); 168 this.disposer.dispose();
164 } 169 }
165 170
166 private final static class DisposeWrapper implements Disposable 171 private final static class DisposeWrapper implements Disposable
167 { 172 {
168 private final long ptr; 173 private final long ptr;
169 174
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 private final static native Filter matches(long ptr, String url, ContentType c ontentType, String documentUrl); 223 private final static native Filter matches(long ptr, String url, ContentType c ontentType, String documentUrl);
219 224
220 private final static native Filter matches(long ptr, String url, ContentType c ontentType, String[] documentUrls); 225 private final static native Filter matches(long ptr, String url, ContentType c ontentType, String[] documentUrls);
221 226
222 private final static native boolean isDocumentWhitelisted(long ptr, String url , String[] documentUrls); 227 private final static native boolean isDocumentWhitelisted(long ptr, String url , String[] documentUrls);
223 228
224 private final static native boolean isElemhideWhitelisted(long ptr, String url , String[] documentUrls); 229 private final static native boolean isElemhideWhitelisted(long ptr, String url , String[] documentUrls);
225 230
226 private final static native void setPref(long ptr, String pref, long valuePtr) ; 231 private final static native void setPref(long ptr, String pref, long valuePtr) ;
227 232
233 private final static native String getHostFromURL(long ptr, String url);
234
228 private final static native void dtor(long ptr); 235 private final static native void dtor(long ptr);
229 } 236 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld