You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.5 KiB
50 lines
1.5 KiB
4 months ago
|
// Copyright 2014 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.
|
||
|
|
||
|
|
||
|
// This file is autogenerated by
|
||
|
// base/android/jni_generator/jni_generator.py
|
||
|
// For
|
||
|
// org/chromium/TestJni
|
||
|
|
||
|
#ifndef org_chromium_TestJni_JNI
|
||
|
#define org_chromium_TestJni_JNI
|
||
|
|
||
|
#include <jni.h>
|
||
|
|
||
|
#include "base/android/jni_generator/jni_generator_helper.h"
|
||
|
|
||
|
|
||
|
// Step 1: Forward declarations.
|
||
|
|
||
|
JNI_REGISTRATION_EXPORT extern const char kClassPath_org_chromium_TestJni[];
|
||
|
const char kClassPath_org_chromium_TestJni[] = "org/chromium/TestJni";
|
||
|
// Leaking this jclass as we cannot use LazyInstance from some threads.
|
||
|
JNI_REGISTRATION_EXPORT base::subtle::AtomicWord g_org_chromium_TestJni_clazz = 0;
|
||
|
#ifndef org_chromium_TestJni_clazz_defined
|
||
|
#define org_chromium_TestJni_clazz_defined
|
||
|
inline jclass org_chromium_TestJni_clazz(JNIEnv* env) {
|
||
|
return base::android::LazyGetClass(env, kClassPath_org_chromium_TestJni,
|
||
|
&g_org_chromium_TestJni_clazz);
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
|
||
|
// Step 2: Constants (optional).
|
||
|
|
||
|
|
||
|
// Step 3: Method stubs.
|
||
|
JNI_GENERATOR_EXPORT void Java_org_chromium_TestJni_nativeDestroy(
|
||
|
JNIEnv* env,
|
||
|
jobject jcaller,
|
||
|
jlong nativeChromeBrowserProvider) {
|
||
|
ChromeBrowserProvider* native =
|
||
|
reinterpret_cast<ChromeBrowserProvider*>(nativeChromeBrowserProvider);
|
||
|
CHECK_NATIVE_PTR(env, jcaller, native, "Destroy");
|
||
|
return native->Destroy(env, base::android::JavaParamRef<jobject>(env, jcaller));
|
||
|
}
|
||
|
|
||
|
|
||
|
#endif // org_chromium_TestJni_JNI
|