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

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

Issue 29556582: Issue 5643 - Make v8::Isolate injectable into JsEngine (Closed)
Patch Set: Created Sept. 26, 2017, 8:54 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/FilterEngine.java
diff --git a/libadblockplus-android/src/org/adblockplus/libadblockplus/FilterEngine.java b/libadblockplus-android/src/org/adblockplus/libadblockplus/FilterEngine.java
index 720223e4d5a6363e2c5623722a5159c293bc7e0a..416d569680b70e82eb491a1802d8cd076c7cd5fc 100644
--- a/libadblockplus-android/src/org/adblockplus/libadblockplus/FilterEngine.java
+++ b/libadblockplus-android/src/org/adblockplus/libadblockplus/FilterEngine.java
@@ -196,6 +196,14 @@ public final class FilterEngine
updateFiltersAsync(this.ptr, subscriptionUrl);
}
+ /**
+ * Get FilterEngine pointer
+ * @return C++ FilterEngine instance pointer
+ */
+ public long getFilterEnginePtr() {
+ return getFilterEnginePtr(this.ptr);
+ }
+
private final static native void registerNatives();
private final static native boolean isFirstRun(long ptr);
@@ -253,4 +261,6 @@ public final class FilterEngine
private final static native String getAcceptableAdsSubscriptionURL(long ptr);
private final static native void updateFiltersAsync(long ptr, String subscriptionUrl);
+
+ private final static native long getFilterEnginePtr(long ptr);
}

Powered by Google App Engine
This is Rietveld