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

Unified Diff: content/public/app/content_jni_onload.h

Issue 935413004: Separate OnJNIOnLoad (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix chromecast 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
Index: content/public/app/content_jni_onload.h
diff --git a/content/public/app/content_jni_onload.h b/content/public/app/content_jni_onload.h
index de2de3abbc8648fd2f205f7578aef3976ab395ab..2f3ee663f9c15138db75b76bef565b85dc804418 100644
--- a/content/public/app/content_jni_onload.h
+++ b/content/public/app/content_jni_onload.h
@@ -7,24 +7,19 @@
#include <jni.h>
+#include "base/android/base_jni_onload.h"
#include "content/common/content_export.h"
-namespace base {
-namespace android {
-
-class JNIOnLoadDelegate;
-
-} // namespace android
-} // namespace base
-
namespace content {
namespace android {
-// Returns true if JNI registration and initialization succeeded. Refer to
-// JNIOnLoadDelegate for more information.
-CONTENT_EXPORT bool OnJNIOnLoad(
+// Returns true if JNI registration succeeded.
+CONTENT_EXPORT bool OnJNIOnLoadRegisterJNI(
JavaVM* vm,
- base::android::JNIOnLoadDelegate* delegate);
+ base::android::RegisterCallback callback);
+
+// Returns true if initialization succeeded.
+CONTENT_EXPORT bool OnJNIOnLoadInit(base::android::InitCallback callback);
} // namespace android
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698