1// Copyright 2014 The Chromium Authors 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5 6// This file is autogenerated by 7// base/android/jni_generator/jni_generator.py 8// For 9// foo/bar 10 11#ifndef foo_bar_JNI 12#define foo_bar_JNI 13 14#include <jni.h> 15 16#include "base/android/jni_generator/jni_generator_helper.h" 17 18 19// Step 1: Forward declarations. 20 21JNI_REGISTRATION_EXPORT extern const char kClassPath_foo_bar[]; 22const char kClassPath_foo_bar[] = "foo/bar"; 23// Leaking this jclass as we cannot use LazyInstance from some threads. 24JNI_REGISTRATION_EXPORT std::atomic<jclass> g_foo_bar_clazz(nullptr); 25#ifndef foo_bar_clazz_defined 26#define foo_bar_clazz_defined 27inline jclass foo_bar_clazz(JNIEnv* env) { 28 return base::android::LazyGetClass(env, kClassPath_foo_bar, &g_foo_bar_clazz); 29} 30#endif 31 32 33// Step 2: Constants (optional). 34 35 36// Step 3: Method stubs. 37static void JNI_bar_SyncSetupEnded(JNIEnv* env, const base::android::JavaParamRef<jobject>& jcaller, 38 jint nativeAndroidSyncSetupFlowHandler); 39 40JNI_GENERATOR_EXPORT void Java_foo_bar_nativeSyncSetupEnded( 41 JNIEnv* env, 42 jobject jcaller, 43 jint nativeAndroidSyncSetupFlowHandler) { 44 return JNI_bar_SyncSetupEnded(env, base::android::JavaParamRef<jobject>(env, jcaller), 45 nativeAndroidSyncSetupFlowHandler); 46} 47 48 49#endif // foo_bar_JNI 50