Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2784)

Unified Diff: base/android/base_jni_onload.h

Issue 935413004: Separate OnJNIOnLoad (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android_webview/lib/main/webview_jni_onload_delegate.cc ('k') | base/android/base_jni_onload.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/base_jni_onload.h
diff --git a/base/android/base_jni_onload.h b/base/android/base_jni_onload.h
index f3f05fa54ffcb37d6af6e2a48d2b18469b37b94c..5c977c7f3f3f278a77396575cd66e568f23cfbb2 100644
--- a/base/android/base_jni_onload.h
+++ b/base/android/base_jni_onload.h
@@ -15,11 +15,17 @@ namespace android {
class JNIOnLoadDelegate;
-// Returns whether JNI registration and initialization succeeded. Caller shall
-// put the JNIOnLoadDelegate into |delegates| in reverse order. Refer
+// Returns whether JNI registration succeeded. Caller shall put the
+// JNIOnLoadDelegate into |delegates| in reverse order. Refer
// JNIOnLoadDelegate for more information.
-BASE_EXPORT bool OnJNIOnLoad(JavaVM* vm,
- std::vector<JNIOnLoadDelegate*>* delegates);
+BASE_EXPORT bool OnJNIOnLoadRegisterJNI(
jam 2015/02/19 22:17:55 nit: the JNI suffix seems redundant
michaelbai 2015/02/20 00:58:35 JNIOnLoad() is entry point of android shared libra
+ JavaVM* vm,
+ std::vector<JNIOnLoadDelegate*>* delegates);
+
+// Returns whether initialization succeeded. Caller shall put the
+// JNIOnLoadDelegate into |delegates| in reverse order. Refer
+// JNIOnLoadDelegate for more information.
+BASE_EXPORT bool OnJNIOnLoadInit(std::vector<JNIOnLoadDelegate*>* delegates);
jam 2015/02/19 22:17:55 now that there are two methods, it's a bit confusi
michaelbai 2015/02/20 00:58:35 Done.
} // namespace android
} // namespace base
« no previous file with comments | « android_webview/lib/main/webview_jni_onload_delegate.cc ('k') | base/android/base_jni_onload.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698