blob: be637d57b90b0ccdb1b900e343ae9aebb49a0297 [file] [log] [blame]
michaelbai842c972d2015-01-28 21:40:361// Copyright 2015 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.
4
5#ifndef BASE_ANDROID_BASE_JNI_ONLOAD_H_
6#define BASE_ANDROID_BASE_JNI_ONLOAD_H_
7
8#include <jni.h>
9#include <vector>
10
11#include "base/base_export.h"
michaelbai5237cb89a2015-02-21 01:29:4012#include "base/callback.h"
michaelbai842c972d2015-01-28 21:40:3613
14namespace base {
15namespace android {
16
tobiasjsb9e287e2017-02-08 11:09:5017// Returns whether JNI registration succeeded.
michaelbai5237cb89a2015-02-21 01:29:4018typedef base::Callback<bool(JNIEnv*)> RegisterCallback;
tobiasjsb9e287e2017-02-08 11:09:5019BASE_EXPORT bool OnJNIOnLoadRegisterJNI(JNIEnv* env);
michaelbai842c972d2015-01-28 21:40:3620
tobiasjsb9e287e2017-02-08 11:09:5021// Returns whether initialization succeeded.
22BASE_EXPORT bool OnJNIOnLoadInit();
michaelbai842c972d2015-01-28 21:40:3623
24} // namespace android
25} // namespace base
26
27#endif // BASE_ANDROID_BASE_JNI_ONLOAD_H_