|
|
|
@ -351,7 +351,7 @@ auto MapResult(const NoInterceptor*, Promise x, void*) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
template <typename Promise, typename Derived> |
|
|
|
|
auto MapResult(absl::Status (Derived::Call::* fn)(ServerMetadata&), Promise x, |
|
|
|
|
auto MapResult(absl::Status (Derived::Call::*fn)(ServerMetadata&), Promise x, |
|
|
|
|
FilterCallData<Derived>* call_data) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnServerTrailingMetadata); |
|
|
|
|
return OnCancel(Map(std::move(x), |
|
|
|
@ -372,7 +372,7 @@ auto MapResult(absl::Status (Derived::Call::* fn)(ServerMetadata&), Promise x, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
template <typename Promise, typename Derived> |
|
|
|
|
auto MapResult(void (Derived::Call::* fn)(ServerMetadata&), Promise x, |
|
|
|
|
auto MapResult(void (Derived::Call::*fn)(ServerMetadata&), Promise x, |
|
|
|
|
FilterCallData<Derived>* call_data) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnServerTrailingMetadata); |
|
|
|
|
return OnCancel(Map(std::move(x), |
|
|
|
@ -389,7 +389,7 @@ auto MapResult(void (Derived::Call::* fn)(ServerMetadata&), Promise x, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
template <typename Promise, typename Derived> |
|
|
|
|
auto MapResult(void (Derived::Call::* fn)(ServerMetadata&, Derived*), Promise x, |
|
|
|
|
auto MapResult(void (Derived::Call::*fn)(ServerMetadata&, Derived*), Promise x, |
|
|
|
|
FilterCallData<Derived>* call_data) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnServerTrailingMetadata); |
|
|
|
|
return OnCancel( |
|
|
|
@ -519,7 +519,7 @@ auto RunCall(Interceptor interceptor, CallArgs call_args, |
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
|
inline auto InterceptClientToServerMessageHandler( |
|
|
|
|
void (Derived::Call::* fn)(const Message&), |
|
|
|
|
void (Derived::Call::*fn)(const Message&), |
|
|
|
|
FilterCallData<Derived>* call_data, const CallArgs&) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnClientToServerMessage); |
|
|
|
|
return [call_data](MessageHandle msg) -> absl::optional<MessageHandle> { |
|
|
|
@ -530,7 +530,7 @@ inline auto InterceptClientToServerMessageHandler( |
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
|
inline auto InterceptClientToServerMessageHandler( |
|
|
|
|
ServerMetadataHandle (Derived::Call::* fn)(const Message&), |
|
|
|
|
ServerMetadataHandle (Derived::Call::*fn)(const Message&), |
|
|
|
|
FilterCallData<Derived>* call_data, const CallArgs&) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnClientToServerMessage); |
|
|
|
|
return [call_data](MessageHandle msg) -> absl::optional<MessageHandle> { |
|
|
|
@ -544,7 +544,7 @@ inline auto InterceptClientToServerMessageHandler( |
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
|
inline auto InterceptClientToServerMessageHandler( |
|
|
|
|
ServerMetadataHandle (Derived::Call::* fn)(const Message&, Derived*), |
|
|
|
|
ServerMetadataHandle (Derived::Call::*fn)(const Message&, Derived*), |
|
|
|
|
FilterCallData<Derived>* call_data, const CallArgs&) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnClientToServerMessage); |
|
|
|
|
return [call_data](MessageHandle msg) -> absl::optional<MessageHandle> { |
|
|
|
@ -559,7 +559,7 @@ inline auto InterceptClientToServerMessageHandler( |
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
|
inline auto InterceptClientToServerMessageHandler( |
|
|
|
|
MessageHandle (Derived::Call::* fn)(MessageHandle, Derived*), |
|
|
|
|
MessageHandle (Derived::Call::*fn)(MessageHandle, Derived*), |
|
|
|
|
FilterCallData<Derived>* call_data, const CallArgs&) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnClientToServerMessage); |
|
|
|
|
return [call_data](MessageHandle msg) -> absl::optional<MessageHandle> { |
|
|
|
@ -570,8 +570,7 @@ inline auto InterceptClientToServerMessageHandler( |
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
|
inline auto InterceptClientToServerMessageHandler( |
|
|
|
|
absl::StatusOr<MessageHandle> (Derived::Call::* fn)(MessageHandle, |
|
|
|
|
Derived*), |
|
|
|
|
absl::StatusOr<MessageHandle> (Derived::Call::*fn)(MessageHandle, Derived*), |
|
|
|
|
FilterCallData<Derived>* call_data, const CallArgs&) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnClientToServerMessage); |
|
|
|
|
return [call_data](MessageHandle msg) -> absl::optional<MessageHandle> { |
|
|
|
@ -611,7 +610,7 @@ inline void InterceptClientToServerMessage(const NoInterceptor*, |
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
|
inline auto InterceptClientToServerMessageHandler( |
|
|
|
|
ServerMetadataHandle (Derived::Call::* fn)(const Message&), |
|
|
|
|
ServerMetadataHandle (Derived::Call::*fn)(const Message&), |
|
|
|
|
typename Derived::Call* call, Derived*, PipeBasedCallSpine* call_spine) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnClientToServerMessage); |
|
|
|
|
return |
|
|
|
@ -625,7 +624,7 @@ inline auto InterceptClientToServerMessageHandler( |
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
|
inline auto InterceptClientToServerMessageHandler( |
|
|
|
|
void (Derived::Call::* fn)(const Message&), typename Derived::Call* call, |
|
|
|
|
void (Derived::Call::*fn)(const Message&), typename Derived::Call* call, |
|
|
|
|
Derived*, PipeBasedCallSpine*) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnClientToServerMessage); |
|
|
|
|
return [call](MessageHandle msg) -> absl::optional<MessageHandle> { |
|
|
|
@ -636,7 +635,7 @@ inline auto InterceptClientToServerMessageHandler( |
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
|
inline auto InterceptClientToServerMessageHandler( |
|
|
|
|
ServerMetadataHandle (Derived::Call::* fn)(const Message&, Derived*), |
|
|
|
|
ServerMetadataHandle (Derived::Call::*fn)(const Message&, Derived*), |
|
|
|
|
typename Derived::Call* call, Derived* channel, |
|
|
|
|
PipeBasedCallSpine* call_spine) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnClientToServerMessage); |
|
|
|
@ -651,7 +650,7 @@ inline auto InterceptClientToServerMessageHandler( |
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
|
inline auto InterceptClientToServerMessageHandler( |
|
|
|
|
MessageHandle (Derived::Call::* fn)(MessageHandle, Derived*), |
|
|
|
|
MessageHandle (Derived::Call::*fn)(MessageHandle, Derived*), |
|
|
|
|
typename Derived::Call* call, Derived* channel, PipeBasedCallSpine*) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnClientToServerMessage); |
|
|
|
|
return [call, channel](MessageHandle msg) { |
|
|
|
@ -661,8 +660,7 @@ inline auto InterceptClientToServerMessageHandler( |
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
|
inline auto InterceptClientToServerMessageHandler( |
|
|
|
|
absl::StatusOr<MessageHandle> (Derived::Call::* fn)(MessageHandle, |
|
|
|
|
Derived*), |
|
|
|
|
absl::StatusOr<MessageHandle> (Derived::Call::*fn)(MessageHandle, Derived*), |
|
|
|
|
typename Derived::Call* call, Derived* channel, |
|
|
|
|
PipeBasedCallSpine* call_spine) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnClientToServerMessage); |
|
|
|
@ -689,7 +687,7 @@ inline void InterceptClientToServerMessage(HookFunction fn, |
|
|
|
|
|
|
|
|
|
template <typename Derived, typename HookFunction> |
|
|
|
|
inline void InterceptClientToServerMessage(HookFunction fn, |
|
|
|
|
void (Derived::Call::* half_close)(), |
|
|
|
|
void (Derived::Call::*half_close)(), |
|
|
|
|
typename Derived::Call* call, |
|
|
|
|
Derived* channel, |
|
|
|
|
PipeBasedCallSpine* call_spine) { |
|
|
|
@ -711,8 +709,8 @@ inline void InterceptClientInitialMetadata(const NoInterceptor*, void*, void*, |
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
|
inline void InterceptClientInitialMetadata( |
|
|
|
|
void (Derived::Call::* fn)(ClientMetadata& md), |
|
|
|
|
typename Derived::Call* call, Derived*, PipeBasedCallSpine* call_spine) { |
|
|
|
|
void (Derived::Call::*fn)(ClientMetadata& md), typename Derived::Call* call, |
|
|
|
|
Derived*, PipeBasedCallSpine* call_spine) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnClientInitialMetadata); |
|
|
|
|
call_spine->client_initial_metadata().receiver.InterceptAndMap( |
|
|
|
|
[call](ClientMetadataHandle md) { |
|
|
|
@ -723,7 +721,7 @@ inline void InterceptClientInitialMetadata( |
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
|
inline void InterceptClientInitialMetadata( |
|
|
|
|
void (Derived::Call::* fn)(ClientMetadata& md, Derived* channel), |
|
|
|
|
void (Derived::Call::*fn)(ClientMetadata& md, Derived* channel), |
|
|
|
|
typename Derived::Call* call, Derived* channel, |
|
|
|
|
PipeBasedCallSpine* call_spine) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnClientInitialMetadata); |
|
|
|
@ -736,7 +734,7 @@ inline void InterceptClientInitialMetadata( |
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
|
inline void InterceptClientInitialMetadata( |
|
|
|
|
ServerMetadataHandle (Derived::Call::* fn)(ClientMetadata& md), |
|
|
|
|
ServerMetadataHandle (Derived::Call::*fn)(ClientMetadata& md), |
|
|
|
|
typename Derived::Call* call, Derived*, PipeBasedCallSpine* call_spine) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnClientInitialMetadata); |
|
|
|
|
call_spine->client_initial_metadata().receiver.InterceptAndMap( |
|
|
|
@ -751,8 +749,8 @@ inline void InterceptClientInitialMetadata( |
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
|
inline void InterceptClientInitialMetadata( |
|
|
|
|
ServerMetadataHandle (Derived::Call::* fn)(ClientMetadata& md, |
|
|
|
|
Derived* channel), |
|
|
|
|
ServerMetadataHandle (Derived::Call::*fn)(ClientMetadata& md, |
|
|
|
|
Derived* channel), |
|
|
|
|
typename Derived::Call* call, Derived* channel, |
|
|
|
|
PipeBasedCallSpine* call_spine) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnClientInitialMetadata); |
|
|
|
@ -768,7 +766,7 @@ inline void InterceptClientInitialMetadata( |
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
|
inline void InterceptClientInitialMetadata( |
|
|
|
|
absl::Status (Derived::Call::* fn)(ClientMetadata& md), |
|
|
|
|
absl::Status (Derived::Call::*fn)(ClientMetadata& md), |
|
|
|
|
typename Derived::Call* call, Derived*, PipeBasedCallSpine* call_spine) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnClientInitialMetadata); |
|
|
|
|
call_spine->client_initial_metadata().receiver.InterceptAndMap( |
|
|
|
@ -784,7 +782,7 @@ inline void InterceptClientInitialMetadata( |
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
|
inline void InterceptClientInitialMetadata( |
|
|
|
|
absl::Status (Derived::Call::* fn)(ClientMetadata& md, Derived* channel), |
|
|
|
|
absl::Status (Derived::Call::*fn)(ClientMetadata& md, Derived* channel), |
|
|
|
|
typename Derived::Call* call, Derived* channel, |
|
|
|
|
PipeBasedCallSpine* call_spine) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnClientInitialMetadata); |
|
|
|
@ -804,7 +802,7 @@ inline void InterceptClientInitialMetadata( |
|
|
|
|
template <typename Promise, typename Derived> |
|
|
|
|
absl::void_t<decltype(StatusCast<ServerMetadataHandle>( |
|
|
|
|
std::declval<PromiseResult<Promise>>))> |
|
|
|
|
InterceptClientInitialMetadata(Promise (Derived::Call::* promise_factory)( |
|
|
|
|
InterceptClientInitialMetadata(Promise (Derived::Call::*promise_factory)( |
|
|
|
|
ClientMetadata& md, Derived* channel), |
|
|
|
|
typename Derived::Call* call, Derived* channel, |
|
|
|
|
PipeBasedCallSpine* call_spine) { |
|
|
|
@ -830,7 +828,7 @@ inline void InterceptServerInitialMetadata(const NoInterceptor*, void*, |
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
|
inline void InterceptServerInitialMetadata( |
|
|
|
|
void (Derived::Call::* fn)(ServerMetadata&), |
|
|
|
|
void (Derived::Call::*fn)(ServerMetadata&), |
|
|
|
|
FilterCallData<Derived>* call_data, const CallArgs& call_args) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnServerInitialMetadata); |
|
|
|
|
call_args.server_initial_metadata->InterceptAndMap( |
|
|
|
@ -842,7 +840,7 @@ inline void InterceptServerInitialMetadata( |
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
|
inline void InterceptServerInitialMetadata( |
|
|
|
|
absl::Status (Derived::Call::* fn)(ServerMetadata&), |
|
|
|
|
absl::Status (Derived::Call::*fn)(ServerMetadata&), |
|
|
|
|
FilterCallData<Derived>* call_data, const CallArgs& call_args) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnServerInitialMetadata); |
|
|
|
|
call_args.server_initial_metadata->InterceptAndMap( |
|
|
|
@ -859,7 +857,7 @@ inline void InterceptServerInitialMetadata( |
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
|
inline void InterceptServerInitialMetadata( |
|
|
|
|
void (Derived::Call::* fn)(ServerMetadata&, Derived*), |
|
|
|
|
void (Derived::Call::*fn)(ServerMetadata&, Derived*), |
|
|
|
|
FilterCallData<Derived>* call_data, const CallArgs& call_args) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnServerInitialMetadata); |
|
|
|
|
call_args.server_initial_metadata->InterceptAndMap( |
|
|
|
@ -871,7 +869,7 @@ inline void InterceptServerInitialMetadata( |
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
|
inline void InterceptServerInitialMetadata( |
|
|
|
|
absl::Status (Derived::Call::* fn)(ServerMetadata&, Derived*), |
|
|
|
|
absl::Status (Derived::Call::*fn)(ServerMetadata&, Derived*), |
|
|
|
|
FilterCallData<Derived>* call_data, const CallArgs& call_args) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnServerInitialMetadata); |
|
|
|
|
call_args.server_initial_metadata->InterceptAndMap( |
|
|
|
@ -892,7 +890,7 @@ inline void InterceptServerInitialMetadata(const NoInterceptor*, void*, void*, |
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
|
inline void InterceptServerInitialMetadata( |
|
|
|
|
void (Derived::Call::* fn)(ServerMetadata&), typename Derived::Call* call, |
|
|
|
|
void (Derived::Call::*fn)(ServerMetadata&), typename Derived::Call* call, |
|
|
|
|
Derived*, PipeBasedCallSpine* call_spine) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnServerInitialMetadata); |
|
|
|
|
call_spine->server_initial_metadata().sender.InterceptAndMap( |
|
|
|
@ -904,7 +902,7 @@ inline void InterceptServerInitialMetadata( |
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
|
inline void InterceptServerInitialMetadata( |
|
|
|
|
absl::Status (Derived::Call::* fn)(ServerMetadata&), |
|
|
|
|
absl::Status (Derived::Call::*fn)(ServerMetadata&), |
|
|
|
|
typename Derived::Call* call, Derived*, PipeBasedCallSpine* call_spine) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnServerInitialMetadata); |
|
|
|
|
call_spine->server_initial_metadata().sender.InterceptAndMap( |
|
|
|
@ -920,7 +918,7 @@ inline void InterceptServerInitialMetadata( |
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
|
inline void InterceptServerInitialMetadata( |
|
|
|
|
void (Derived::Call::* fn)(ServerMetadata&, Derived*), |
|
|
|
|
void (Derived::Call::*fn)(ServerMetadata&, Derived*), |
|
|
|
|
typename Derived::Call* call, Derived* channel, |
|
|
|
|
PipeBasedCallSpine* call_spine) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnServerInitialMetadata); |
|
|
|
@ -933,7 +931,7 @@ inline void InterceptServerInitialMetadata( |
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
|
inline void InterceptServerInitialMetadata( |
|
|
|
|
absl::Status (Derived::Call::* fn)(ServerMetadata&, Derived*), |
|
|
|
|
absl::Status (Derived::Call::*fn)(ServerMetadata&, Derived*), |
|
|
|
|
typename Derived::Call* call, Derived* channel, |
|
|
|
|
PipeBasedCallSpine* call_spine) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnServerInitialMetadata); |
|
|
|
@ -953,7 +951,7 @@ inline void InterceptServerToClientMessage(const NoInterceptor*, void*, |
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
|
inline void InterceptServerToClientMessage( |
|
|
|
|
void (Derived::Call::* fn)(const Message&), |
|
|
|
|
void (Derived::Call::*fn)(const Message&), |
|
|
|
|
FilterCallData<Derived>* call_data, const CallArgs& call_args) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnServerToClientMessage); |
|
|
|
|
call_args.server_to_client_messages->InterceptAndMap( |
|
|
|
@ -965,7 +963,7 @@ inline void InterceptServerToClientMessage( |
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
|
inline void InterceptServerToClientMessage( |
|
|
|
|
ServerMetadataHandle (Derived::Call::* fn)(const Message&), |
|
|
|
|
ServerMetadataHandle (Derived::Call::*fn)(const Message&), |
|
|
|
|
FilterCallData<Derived>* call_data, const CallArgs& call_args) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnServerToClientMessage); |
|
|
|
|
call_args.server_to_client_messages->InterceptAndMap( |
|
|
|
@ -980,7 +978,7 @@ inline void InterceptServerToClientMessage( |
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
|
inline void InterceptServerToClientMessage( |
|
|
|
|
ServerMetadataHandle (Derived::Call::* fn)(const Message&, Derived*), |
|
|
|
|
ServerMetadataHandle (Derived::Call::*fn)(const Message&, Derived*), |
|
|
|
|
FilterCallData<Derived>* call_data, const CallArgs& call_args) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnServerToClientMessage); |
|
|
|
|
call_args.server_to_client_messages->InterceptAndMap( |
|
|
|
@ -996,7 +994,7 @@ inline void InterceptServerToClientMessage( |
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
|
inline void InterceptServerToClientMessage( |
|
|
|
|
MessageHandle (Derived::Call::* fn)(MessageHandle, Derived*), |
|
|
|
|
MessageHandle (Derived::Call::*fn)(MessageHandle, Derived*), |
|
|
|
|
FilterCallData<Derived>* call_data, const CallArgs& call_args) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnServerToClientMessage); |
|
|
|
|
call_args.server_to_client_messages->InterceptAndMap( |
|
|
|
@ -1008,8 +1006,7 @@ inline void InterceptServerToClientMessage( |
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
|
inline void InterceptServerToClientMessage( |
|
|
|
|
absl::StatusOr<MessageHandle> (Derived::Call::* fn)(MessageHandle, |
|
|
|
|
Derived*), |
|
|
|
|
absl::StatusOr<MessageHandle> (Derived::Call::*fn)(MessageHandle, Derived*), |
|
|
|
|
FilterCallData<Derived>* call_data, const CallArgs& call_args) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnServerToClientMessage); |
|
|
|
|
call_args.server_to_client_messages->InterceptAndMap( |
|
|
|
@ -1028,7 +1025,7 @@ inline void InterceptServerToClientMessage(const NoInterceptor*, void*, void*, |
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
|
inline void InterceptServerToClientMessage( |
|
|
|
|
void (Derived::Call::* fn)(const Message&), typename Derived::Call* call, |
|
|
|
|
void (Derived::Call::*fn)(const Message&), typename Derived::Call* call, |
|
|
|
|
Derived*, PipeBasedCallSpine* call_spine) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnServerToClientMessage); |
|
|
|
|
call_spine->server_to_client_messages().sender.InterceptAndMap( |
|
|
|
@ -1040,7 +1037,7 @@ inline void InterceptServerToClientMessage( |
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
|
inline void InterceptServerToClientMessage( |
|
|
|
|
ServerMetadataHandle (Derived::Call::* fn)(const Message&), |
|
|
|
|
ServerMetadataHandle (Derived::Call::*fn)(const Message&), |
|
|
|
|
typename Derived::Call* call, Derived*, PipeBasedCallSpine* call_spine) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnServerToClientMessage); |
|
|
|
|
call_spine->server_to_client_messages().sender.InterceptAndMap( |
|
|
|
@ -1054,7 +1051,7 @@ inline void InterceptServerToClientMessage( |
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
|
inline void InterceptServerToClientMessage( |
|
|
|
|
ServerMetadataHandle (Derived::Call::* fn)(const Message&, Derived*), |
|
|
|
|
ServerMetadataHandle (Derived::Call::*fn)(const Message&, Derived*), |
|
|
|
|
typename Derived::Call* call, Derived* channel, |
|
|
|
|
PipeBasedCallSpine* call_spine) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnServerToClientMessage); |
|
|
|
@ -1070,7 +1067,7 @@ inline void InterceptServerToClientMessage( |
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
|
inline void InterceptServerToClientMessage( |
|
|
|
|
MessageHandle (Derived::Call::* fn)(MessageHandle, Derived*), |
|
|
|
|
MessageHandle (Derived::Call::*fn)(MessageHandle, Derived*), |
|
|
|
|
typename Derived::Call* call, Derived* channel, |
|
|
|
|
PipeBasedCallSpine* call_spine) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnServerToClientMessage); |
|
|
|
@ -1082,8 +1079,7 @@ inline void InterceptServerToClientMessage( |
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
|
inline void InterceptServerToClientMessage( |
|
|
|
|
absl::StatusOr<MessageHandle> (Derived::Call::* fn)(MessageHandle, |
|
|
|
|
Derived*), |
|
|
|
|
absl::StatusOr<MessageHandle> (Derived::Call::*fn)(MessageHandle, Derived*), |
|
|
|
|
typename Derived::Call* call, Derived* channel, |
|
|
|
|
PipeBasedCallSpine* call_spine) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnServerToClientMessage); |
|
|
|
@ -1127,7 +1123,7 @@ inline void InterceptServerTrailingMetadata( |
|
|
|
|
inline void InterceptFinalize(const NoInterceptor*, void*, void*) {} |
|
|
|
|
|
|
|
|
|
template <class Call> |
|
|
|
|
inline void InterceptFinalize(void (Call::* fn)(const grpc_call_final_info*), |
|
|
|
|
inline void InterceptFinalize(void (Call::*fn)(const grpc_call_final_info*), |
|
|
|
|
void*, Call* call) { |
|
|
|
|
DCHECK(fn == &Call::OnFinalize); |
|
|
|
|
GetContext<CallFinalization>()->Add( |
|
|
|
@ -1138,7 +1134,7 @@ inline void InterceptFinalize(void (Call::* fn)(const grpc_call_final_info*), |
|
|
|
|
|
|
|
|
|
template <class Derived> |
|
|
|
|
inline void InterceptFinalize( |
|
|
|
|
void (Derived::Call::* fn)(const grpc_call_final_info*, Derived*), |
|
|
|
|
void (Derived::Call::*fn)(const grpc_call_final_info*, Derived*), |
|
|
|
|
Derived* channel, typename Derived::Call* call) { |
|
|
|
|
DCHECK(fn == &Derived::Call::OnFinalize); |
|
|
|
|
GetContext<CallFinalization>()->Add( |
|
|
|
|