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

Unified Diff: libadblockplus-android/jni/JniNotification.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
« no previous file with comments | « libadblockplus-android/jni/JniLogSystem.cpp ('k') | libadblockplus-android/jni/JniNotification.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: libadblockplus-android/jni/JniNotification.h
diff --git a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/LazyWebRequest.java b/libadblockplus-android/jni/JniNotification.h
similarity index 74%
copy from libadblockplus-android-tests/src/org/adblockplus/libadblockplus/LazyWebRequest.java
copy to libadblockplus-android/jni/JniNotification.h
index a82b9f0fd7cb9f7602f9b8a7274a19c6df72655a..a27a89f6bc3ed916dff7327669ffd38344007ae9 100644
--- a/libadblockplus-android-tests/src/org/adblockplus/libadblockplus/LazyWebRequest.java
+++ b/libadblockplus-android/jni/JniNotification.h
@@ -15,18 +15,13 @@
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
*/
-package org.adblockplus.libadblockplus;
+#ifndef JNINOTIFICATION_H
+#define JNINOTIFICATION_H
-import java.util.List;
+#include <jni.h>
-public class LazyWebRequest extends WebRequest
-{
- @Override
- public ServerResponse httpGET(String url, List<HeaderEntry> headers)
- {
- while (true)
- {
+void JniNotification_OnLoad(JavaVM* vm, JNIEnv* env, void* reserved);
- }
- }
-}
+void JniNotification_OnUnload(JavaVM* vm, JNIEnv* env, void* reserved);
+
+#endif /* JNINOTIFICATION_H */
« no previous file with comments | « libadblockplus-android/jni/JniLogSystem.cpp ('k') | libadblockplus-android/jni/JniNotification.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld