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

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

Issue 29556626: Issue 5790 - Get ready for integration into Chromium (Closed)
Patch Set: Renamed to getNativePtr() Created Sept. 28, 2017, 9:08 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
« no previous file with comments | « libadblockplus-android/jni/JniFilterEngine.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..182ef7499b190366617a73496af6ba2bda33e15c 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 (AdblockPlus::FilterEngine*)
+ */
+ public long getNativePtr() {
+ return getNativePtr(this.ptr);
+ }
diegocarloslima 2017/09/28 11:55:30 Well, this ain't a good practice to expose/share n
+
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 getNativePtr(long ptr);
}
« no previous file with comments | « libadblockplus-android/jni/JniFilterEngine.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld