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

Unified Diff: libadblockplus-android/jni/JniWebRequest.h

Issue 29354787: Issue 4442 - Cache class and ctors references in JNI_Load/UnLoad (Closed)
Patch Set: reverted to NewTuple Created Nov. 21, 2016, 8:25 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/jni/JniWebRequest.h
diff --git a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/NoOpUpdaterCallback.java b/libadblockplus-android/jni/JniWebRequest.h
similarity index 74%
copy from libadblockplus-android-tests/src/org/adblockplus/libadblockplus/NoOpUpdaterCallback.java
copy to libadblockplus-android/jni/JniWebRequest.h
index a7988cb8b932e37f6014c4b55763ac95357e5662..31509575e3f55d9c41aa10480e70516890a87ecd 100644
--- a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/NoOpUpdaterCallback.java
+++ b/libadblockplus-android/jni/JniWebRequest.h
@@ -15,12 +15,13 @@
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
*/
-package org.adblockplus.libadblockplus;
+#ifndef JNIWEBREQUEST_H
+#define JNIWEBREQUEST_H
-public class NoOpUpdaterCallback extends UpdateCheckDoneCallback
-{
- @Override
- public void updateCheckDoneCallback(String error)
- {
- }
-}
+#include <jni.h>
+
+void JniWebRequest_OnLoad(JavaVM* vm, JNIEnv* env, void* reserved);
+
+void JniWebRequest_OnUnload(JavaVM* vm, JNIEnv* env, void* reserved);
+
+#endif /* JNIWEBREQUEST_H */
« no previous file with comments | « libadblockplus-android/jni/JniShowNotificationCallback.cpp ('k') | libadblockplus-android/jni/JniWebRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld