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

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

Issue 864563002: Separate JNI registration with initialization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix component build Created 5 years, 11 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
new file mode 100644
index 0000000000000000000000000000000000000000..457b4c5ff62ccd783dd64694027137ddb59ddd7f
--- /dev/null
+++ b/content/public/app/content_jni_onload.h
@@ -0,0 +1,34 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_APP_CONTENT_JNI_ONLOAD_H_
+#define CONTENT_PUBLIC_APP_CONTENT_JNI_ONLOAD_H_
+
+#include <jni.h>
+#include <vector>
+
+#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. Caller shall
+// put the JNIOnLoadDelegate into |delegates| in reverse order. Refer
+// JNIOnLoadDelegate for more information.
+CONTENT_EXPORT bool OnJNIOnLoad(
+ JavaVM* vm,
+ std::vector<base::android::JNIOnLoadDelegate*>* delegates);
jam 2015/01/26 22:38:22 nit: no need to take a vector here, since there's
+
+} // namespace android
+} // namespace content
+
+#endif // CONTENT_PUBLIC_APP_CONTENT_JNI_ONLOAD_H_

Powered by Google App Engine
This is Rietveld 408576698