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

Unified Diff: src/org/adblockplus/android/ABPEngine.java

Issue 6245218638626816: Issue 1424 - Update libadblockplus-binaries to 6f79af14ad4e (Closed)
Patch Set: Use GetObjectClass instead of FindClass Created Sept. 22, 2014, 1:16 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « jni/JniUpdaterCallback.cpp ('k') | src/org/adblockplus/android/AdblockPlus.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/org/adblockplus/android/ABPEngine.java
===================================================================
--- a/src/org/adblockplus/android/ABPEngine.java
+++ b/src/org/adblockplus/android/ABPEngine.java
@@ -25,10 +25,11 @@
import org.adblockplus.libadblockplus.Filter;
import org.adblockplus.libadblockplus.FilterChangeCallback;
import org.adblockplus.libadblockplus.FilterEngine;
+import org.adblockplus.libadblockplus.FilterEngine.ContentType;
import org.adblockplus.libadblockplus.JsEngine;
import org.adblockplus.libadblockplus.LogSystem;
import org.adblockplus.libadblockplus.Subscription;
-import org.adblockplus.libadblockplus.UpdaterCallback;
+import org.adblockplus.libadblockplus.UpdateCheckDoneCallback;
import org.adblockplus.libadblockplus.WebRequest;
import android.content.Context;
@@ -59,7 +60,7 @@
private volatile LogSystem logSystem;
private volatile WebRequest webRequest;
private volatile EventCallback updateCallback;
- private volatile UpdaterCallback updaterCallback;
+ private volatile UpdateCheckDoneCallback updateCheckDoneCallback;
private volatile FilterChangeCallback filterChangeCallback;
private ABPEngine(final Context context)
@@ -111,7 +112,7 @@
engine.filterChangeCallback = new AndroidFilterChangeCallback(context);
engine.filterEngine.setFilterChangeCallback(engine.filterChangeCallback);
- engine.updaterCallback = new AndroidUpdaterCallback(context);
+ engine.updateCheckDoneCallback = new AndroidUpdateCheckDoneCallback(context);
return engine;
}
@@ -149,10 +150,10 @@
this.updateCallback = null;
}
- if (this.updaterCallback != null)
+ if (this.updateCheckDoneCallback != null)
{
- this.updaterCallback.dispose();
- this.updaterCallback = null;
+ this.updateCheckDoneCallback.dispose();
+ this.updateCheckDoneCallback = null;
}
if (this.filterChangeCallback != null)
@@ -243,7 +244,7 @@
return this.filterEngine.getPref("documentation_link").toString();
}
- public boolean matches(final String fullUrl, final String contentType, final String[] referrerChainArray)
+ public boolean matches(final String fullUrl, final ContentType contentType, final String[] referrerChainArray)
{
final Filter filter = this.filterEngine.matches(fullUrl, contentType, referrerChainArray);
@@ -265,7 +266,7 @@
public void checkForUpdates()
{
- this.filterEngine.forceUpdateCheck(this.updaterCallback);
+ this.filterEngine.forceUpdateCheck(this.updateCheckDoneCallback);
}
public void updateSubscriptionStatus(final String url)
« no previous file with comments | « jni/JniUpdaterCallback.cpp ('k') | src/org/adblockplus/android/AdblockPlus.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld