int_string_callback.h 830 B

12345678910111213141516171819202122232425
  1. // Copyright 2018 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef BASE_ANDROID_INT_STRING_CALLBACK_H_
  5. #define BASE_ANDROID_INT_STRING_CALLBACK_H_
  6. #include <string>
  7. #include "base/android/scoped_java_ref.h"
  8. #include "base/base_export.h"
  9. namespace base {
  10. namespace android {
  11. // Runs the Java |callback| by calling its onResult method and passing the
  12. // integer and string as its arguments.
  13. void BASE_EXPORT RunIntStringCallbackAndroid(const JavaRef<jobject>& callback,
  14. int int_arg,
  15. const std::string& str_arg);
  16. } // namespace android
  17. } // namespace base
  18. #endif // BASE_ANDROID_INT_STRING_CALLBACK_H_