Chromium Code Reviews| 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_ |