Index: content/public/app/content_jni_register.h |
diff --git a/content/public/app/content_jni_register.h b/content/public/app/content_jni_register.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7ada2ed0317aba7d67fc918979e7e10a4e31587a |
--- /dev/null |
+++ b/content/public/app/content_jni_register.h |
@@ -0,0 +1,22 @@ |
+// Copyright 2014 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_REGISTER_H_ |
+#define CONTENT_PUBLIC_APP_CONTENT_JNI_REGISTER_H_ |
+ |
+#include <jni.h> |
+ |
+#include "base/macros.h" |
+#include "content/common/content_export.h" |
+ |
+namespace content { |
+ |
+// Register all content JNI functions now, rather than waiting for the process |
+// of fully loading the native library to complete. This must only be called |
+// during JNI_OnLoad. |
+CONTENT_EXPORT bool EnsureJniRegistered(JNIEnv* env); |
Yaron
2014/01/17 02:18:25
Why do you need this? Who's calling it?
aberent
2014/01/30 17:46:05
It is called by webview_entry_point.cc, because We
|
+ |
+} // namespace content |
+ |
+#endif // CONTENT_PUBLIC_APP_CONTENT_JNI_REGISTER_H_ |