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

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

Issue 141223002: Move the android library loader from content to base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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_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_

Powered by Google App Engine
This is Rietveld 408576698