summaryrefslogtreecommitdiffstats
path: root/content/public/app/content_jni_onload.h
blob: 1b220f528445eae22e8a4d445eb571bcf15eefd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// 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 CONTENT_PUBLIC_APP_CONTENT_JNI_ONLOAD_H_
#define CONTENT_PUBLIC_APP_CONTENT_JNI_ONLOAD_H_

#include <jni.h>

#include "base/android/base_jni_onload.h"
#include "content/common/content_export.h"

namespace content {
namespace android {

// Returns true if JNI registration succeeded.
CONTENT_EXPORT bool OnJNIOnLoadRegisterJNI(
    JavaVM* vm,
    std::vector<base::android::RegisterCallback> callbacks);

// Returns true if initialization succeeded.
CONTENT_EXPORT bool OnJNIOnLoadInit(
    std::vector<base::android::InitCallback> callbacks);

}  // namespace android
}  // namespace content

#endif  // CONTENT_PUBLIC_APP_CONTENT_JNI_ONLOAD_H_