Chromium Code Reviews| Index: base/android/base_jni_onload.h |
| diff --git a/base/android/base_jni_onload.h b/base/android/base_jni_onload.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..1b509dedddb2bab739c2df47582012ac29935dad |
| --- /dev/null |
| +++ b/base/android/base_jni_onload.h |
| @@ -0,0 +1,27 @@ |
| +// Copyright 2015 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 BASE_ANDROID_BASE_JNI_ONLOAD_H_ |
| +#define BASE_ANDROID_BASE_JNI_ONLOAD_H_ |
| + |
| +#include <jni.h> |
| +#include <vector> |
| + |
| +#include "base/base_export.h" |
| + |
| +namespace base { |
| +namespace android { |
| + |
| +class JNIOnLoadDelegate; |
| + |
| +// Returns true if JNI registration and initialization succeeded. Caller shall |
|
nyquist
2015/01/28 01:26:03
Nit: s/true if/whether/
|
| +// put the JNIOnLoadDelegate into |delegates| in reverse order. Refer |
| +// JNIOnLoadDelegate for more information. |
| +BASE_EXPORT bool OnJNIOnLoad(JavaVM* vm, |
| + std::vector<JNIOnLoadDelegate*>* delegates); |
| + |
| +} // namespace android |
| +} // namespace base |
| + |
| +#endif // BASE_ANDROID_BASE_JNI_ONLOAD_H_ |