Index: content/public/app/android_library_loader_hooks.h |
diff --git a/content/public/app/android_library_loader_hooks.h b/content/public/app/android_library_loader_hooks.h |
index c4bec7e39396da1a4135853ec0cf2611bd54f181..a980005ee5697b1ccd6ce3ac6d909e6b61538d76 100644 |
--- a/content/public/app/android_library_loader_hooks.h |
+++ b/content/public/app/android_library_loader_hooks.h |
@@ -18,6 +18,11 @@ namespace content { |
// once the native library has fully loaded. |
CONTENT_EXPORT bool RegisterLibraryLoaderEntryHook(JNIEnv* env); |
+// 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); |
+ |
// Call on exit to delete the AtExitManager which OnLibraryLoadedOnUIThread |
// created. |
CONTENT_EXPORT void LibraryLoaderExitHook(); |