Implement SSLKEYLOGFILE for OpenSSL.
[chromium-blink-merge.git] / content / browser / android / java / jni_helper.h
blob25c851598fb202fc94fd88e3594525af858669b4
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_BROWSER_ANDROID_JAVA_JNI_HELPER_H_
6 #define CONTENT_BROWSER_ANDROID_JAVA_JNI_HELPER_H_
8 #include <jni.h>
10 #include "content/common/content_export.h"
12 namespace content {
14 // Gets the method ID from the class name. Clears the pending Java exception
15 // and returns NULL if the method is not found. Caches results.
16 // Strings passed to this function are held in the cache and MUST remain valid
17 // beyond the duration of all future calls to this function, across all
18 // threads. In practice, this means that the function should only be used with
19 // string constants.
20 CONTENT_EXPORT jmethodID GetMethodIDFromClassName(JNIEnv* env,
21 const char* class_name,
22 const char* method,
23 const char* jni_signature);
25 } // namespace content
27 #endif // CONTENT_BROWSER_ANDROID_JAVA_JNI_HELPER_H_