15 #ifndef GRPCPP_CREATE_CHANNEL_BINDER_H
16 #define GRPCPP_CREATE_CHANNEL_BINDER_H
26 #include "absl/strings/string_view.h"
33 namespace experimental {
47 std::shared_ptr<grpc::Channel> CreateBinderChannel(
48 void* jni_env_void, jobject context, absl::string_view package_name,
49 absl::string_view class_name,
50 std::shared_ptr<grpc::experimental::binder::SecurityPolicy>
66 std::shared_ptr<grpc::Channel> CreateCustomBinderChannel(
67 void* jni_env_void, jobject context, absl::string_view package_name,
68 absl::string_view class_name,
69 std::shared_ptr<grpc::experimental::binder::SecurityPolicy> security_policy,
70 const ChannelArguments& args);
82 std::shared_ptr<grpc::Channel> CreateBinderChannel(
83 void* jni_env_void, jobject context, absl::string_view uri,
84 std::shared_ptr<grpc::experimental::binder::SecurityPolicy>
98 std::shared_ptr<grpc::Channel> CreateCustomBinderChannel(
99 void* jni_env_void, jobject context, absl::string_view uri,
100 std::shared_ptr<grpc::experimental::binder::SecurityPolicy> security_policy,
101 const ChannelArguments& args);
110 bool InitializeBinderChannelJavaClass(
void* jni_env_void);
118 bool InitializeBinderChannelJavaClass(
119 void* jni_env_void, std::function<
void*(std::string)> class_finder);
126 #endif // GRPCPP_CREATE_CHANNEL_BINDER_H