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

Unified Diff: content/browser/renderer_host/java/jni_helper.h

Issue 23835020: Android: cleanup jni_android to minimize external dependencies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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/browser/renderer_host/java/jni_helper.h
diff --git a/content/browser/renderer_host/java/jni_helper.h b/content/browser/renderer_host/java/jni_helper.h
new file mode 100644
index 0000000000000000000000000000000000000000..fde3305b42ab1af3e07738096badf7909912cf13
--- /dev/null
+++ b/content/browser/renderer_host/java/jni_helper.h
@@ -0,0 +1,21 @@
+// Copyright 2013 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_BROWSER_RENDERER_HOST_JAVA_JNI_HELPER_H_
+#define CONTENT_BROWSER_RENDERER_HOST_JAVA_JNI_HELPER_H_
+
+#include <jni.h>
+
joth 2013/09/24 13:31:49 content namespace
bulach 2013/09/24 14:43:34 Done.
+// Gets the method ID from the class name. Clears the pending Java exception
+// and returns NULL if the method is not found. Caches results.
+// Strings passed to this function are held in the cache and MUST remain valid
+// beyond the duration of all future calls to this function, across all
+// threads. In practice, this means that the function should only be used with
+// string constants.
+jmethodID GetMethodIDFromClassName(JNIEnv* env,
+ const char* class_name,
+ const char* method,
+ const char* jni_signature);
+
+#endif // CONTENT_BROWSER_RENDERER_HOST_JAVA_JNI_HELPER_H_

Powered by Google App Engine
This is Rietveld 408576698