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

Unified Diff: libadblockplus-android/jni/JniLibrary.cpp

Issue 29678581: Issue 6000 - Rename "libadblockplus-android" (Closed)
Patch Set: addressed comments Created Jan. 29, 2018, 11:04 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/JniJsValue.cpp ('k') | libadblockplus-android/jni/JniLogSystem.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: libadblockplus-android/jni/JniLibrary.cpp
diff --git a/libadblockplus-android/jni/JniLibrary.cpp b/libadblockplus-android/jni/JniLibrary.cpp
deleted file mode 100644
index f410024a8f2c1da9dcafef4aad9d0a62ad779e29..0000000000000000000000000000000000000000
--- a/libadblockplus-android/jni/JniLibrary.cpp
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * This file is part of Adblock Plus <https://adblockplus.org/>,
- * Copyright (C) 2006-present eyeo GmbH
- *
- * Adblock Plus is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 3 as
- * published by the Free Software Foundation.
- *
- * Adblock Plus is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#include "JniJsValue.h"
-#include "JniFilter.h"
-#include "JniLogSystem.h"
-#include "JniCallbacks.h"
-#include "JniNotification.h"
-#include "JniWebRequest.h"
-
-jint JNI_OnLoad(JavaVM* vm, void* reserved)
-{
- JNIEnv* env;
- if (vm->GetEnv(reinterpret_cast<void**>(&env), ABP_JNI_VERSION) != JNI_OK)
- {
- return JNI_ERR;
- }
-
- JniJsValue_OnLoad(vm, env, reserved);
- JniFilter_OnLoad(vm, env, reserved);
- JniLogSystem_OnLoad(vm, env, reserved);
- JniCallbacks_OnLoad(vm, env, reserved);
- JniNotification_OnLoad(vm, env, reserved);
- JniWebRequest_OnLoad(vm, env, reserved);
- JniUtils_OnLoad(vm, env, reserved);
-
- return ABP_JNI_VERSION;
-}
-
-void JNI_OnUnload(JavaVM* vm, void* reserved)
-{
- JNIEnv* env;
- if (vm->GetEnv(reinterpret_cast<void**>(&env), ABP_JNI_VERSION) != JNI_OK)
- {
- return;
- }
-
- JniJsValue_OnUnload(vm, env, reserved);
- JniFilter_OnUnload(vm, env, reserved);
- JniLogSystem_OnUnload(vm, env, reserved);
- JniCallbacks_OnUnload(vm, env, reserved);
- JniNotification_OnUnload(vm, env, reserved);
- JniWebRequest_OnUnload(vm, env, reserved);
- JniUtils_OnUnload(vm, env, reserved);
-}
« no previous file with comments | « libadblockplus-android/jni/JniJsValue.cpp ('k') | libadblockplus-android/jni/JniLogSystem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld