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

Unified Diff: libadblockplus-android/src/org/adblockplus/libadblockplus/IsAllowedConnectionCallback.java

Issue 29379647: Issue 4948 - add possibility to not send data depending on connection properties (Closed)
Patch Set: after Sergei's comments minor clean-up Created March 15, 2017, 10:35 a.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
Index: libadblockplus-android/src/org/adblockplus/libadblockplus/IsAllowedConnectionCallback.java
diff --git a/libadblockplus-android/src/org/adblockplus/libadblockplus/FilterChangeCallback.java b/libadblockplus-android/src/org/adblockplus/libadblockplus/IsAllowedConnectionCallback.java
similarity index 89%
copy from libadblockplus-android/src/org/adblockplus/libadblockplus/FilterChangeCallback.java
copy to libadblockplus-android/src/org/adblockplus/libadblockplus/IsAllowedConnectionCallback.java
index f75cc285a5e810602f489e4a643de2da2445d905..e3e6387f96d8099af12516850e2674f6790abc04 100644
--- a/libadblockplus-android/src/org/adblockplus/libadblockplus/FilterChangeCallback.java
+++ b/libadblockplus-android/src/org/adblockplus/libadblockplus/IsAllowedConnectionCallback.java
@@ -17,7 +17,7 @@
package org.adblockplus.libadblockplus;
-public abstract class FilterChangeCallback implements Disposable
+public abstract class IsAllowedConnectionCallback implements Disposable
{
private final Disposer disposer;
protected final long ptr;
@@ -28,13 +28,13 @@ public abstract class FilterChangeCallback implements Disposable
registerNatives();
}
- public FilterChangeCallback()
+ public IsAllowedConnectionCallback()
{
this.ptr = ctor(this);
this.disposer = new Disposer(this, new DisposeWrapper(this.ptr));
}
- public abstract void filterChangeCallback(String action, JsValue jsValue);
+ public abstract boolean isConnectionAllowed(String connection);
@Override
public void dispose()

Powered by Google App Engine
This is Rietveld