xref: /aosp_15_r20/external/cronet/base/android/int_string_callback.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
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