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. 4 5 #ifndef BASE_ANDROID_INT_STRING_CALLBACK_H_ 6 #define BASE_ANDROID_INT_STRING_CALLBACK_H_ 7 8 #include <string> 9 10 #include "base/android/scoped_java_ref.h" 11 #include "base/base_export.h" 12 13 namespace base { 14 namespace android { 15 16 // Runs the Java |callback| by calling its onResult method and passing the 17 // integer and string as its arguments. 18 void BASE_EXPORT RunIntStringCallbackAndroid(const JavaRef<jobject>& callback, 19 int int_arg, 20 const std::string& str_arg); 21 22 } // namespace android 23 } // namespace base 24 25 #endif // BASE_ANDROID_INT_STRING_CALLBACK_H_ 26