1 // Copyright 2018 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.
5 // This file encapsulates the JNI headers generated for IntStringCallback, so
6 // that the methods defined in the generated headers only end up in one object
7 // file. This is similar to //base/android/callback_android.*.
9 #include "base/android/int_string_callback.h"
13 #include "base/android/jni_string.h"
14 #include "base/base_jni/IntStringCallback_jni.h"
19 void RunIntStringCallbackAndroid(const JavaRef<jobject>& callback,
21 const std::string& str_arg) {
22 JNIEnv* env = AttachCurrentThread();
23 Java_IntStringCallback_onResult(env, callback, int_arg,
24 ConvertUTF8ToJavaString(env, str_arg));
27 } // namespace android