|
|
@ -350,7 +350,7 @@ auto MapResult(const NoInterceptor*, Promise x, void*) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
template <typename Promise, typename Derived> |
|
|
|
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) { |
|
|
|
FilterCallData<Derived>* call_data) { |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerTrailingMetadata); |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerTrailingMetadata); |
|
|
|
return Map(std::move(x), [call_data](ServerMetadataHandle md) { |
|
|
|
return Map(std::move(x), [call_data](ServerMetadataHandle md) { |
|
|
@ -361,7 +361,7 @@ auto MapResult(absl::Status (Derived::Call::* fn)(ServerMetadata&), Promise x, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
template <typename Promise, typename Derived> |
|
|
|
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) { |
|
|
|
FilterCallData<Derived>* call_data) { |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerTrailingMetadata); |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerTrailingMetadata); |
|
|
|
return Map(std::move(x), [call_data](ServerMetadataHandle md) { |
|
|
|
return Map(std::move(x), [call_data](ServerMetadataHandle md) { |
|
|
@ -371,7 +371,7 @@ auto MapResult(void (Derived::Call::* fn)(ServerMetadata&), Promise x, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
template <typename Promise, typename Derived> |
|
|
|
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) { |
|
|
|
FilterCallData<Derived>* call_data) { |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerTrailingMetadata); |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerTrailingMetadata); |
|
|
|
return Map(std::move(x), [call_data](ServerMetadataHandle md) { |
|
|
|
return Map(std::move(x), [call_data](ServerMetadataHandle md) { |
|
|
@ -496,7 +496,7 @@ inline void InterceptClientToServerMessage(const NoInterceptor*, void*, |
|
|
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
template <typename Derived> |
|
|
|
inline void InterceptClientToServerMessage( |
|
|
|
inline void InterceptClientToServerMessage( |
|
|
|
ServerMetadataHandle (Derived::Call::* fn)(const Message&), |
|
|
|
ServerMetadataHandle (Derived::Call::*fn)(const Message&), |
|
|
|
FilterCallData<Derived>* call_data, const CallArgs& call_args) { |
|
|
|
FilterCallData<Derived>* call_data, const CallArgs& call_args) { |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnClientToServerMessage); |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnClientToServerMessage); |
|
|
|
call_args.client_to_server_messages->InterceptAndMap( |
|
|
|
call_args.client_to_server_messages->InterceptAndMap( |
|
|
@ -511,7 +511,7 @@ inline void InterceptClientToServerMessage( |
|
|
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
template <typename Derived> |
|
|
|
inline void InterceptClientToServerMessage( |
|
|
|
inline void InterceptClientToServerMessage( |
|
|
|
ServerMetadataHandle (Derived::Call::* fn)(const Message&, Derived*), |
|
|
|
ServerMetadataHandle (Derived::Call::*fn)(const Message&, Derived*), |
|
|
|
FilterCallData<Derived>* call_data, const CallArgs& call_args) { |
|
|
|
FilterCallData<Derived>* call_data, const CallArgs& call_args) { |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnClientToServerMessage); |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnClientToServerMessage); |
|
|
|
call_args.client_to_server_messages->InterceptAndMap( |
|
|
|
call_args.client_to_server_messages->InterceptAndMap( |
|
|
@ -527,7 +527,7 @@ inline void InterceptClientToServerMessage( |
|
|
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
template <typename Derived> |
|
|
|
inline void InterceptClientToServerMessage( |
|
|
|
inline void InterceptClientToServerMessage( |
|
|
|
MessageHandle (Derived::Call::* fn)(MessageHandle, Derived*), |
|
|
|
MessageHandle (Derived::Call::*fn)(MessageHandle, Derived*), |
|
|
|
FilterCallData<Derived>* call_data, const CallArgs& call_args) { |
|
|
|
FilterCallData<Derived>* call_data, const CallArgs& call_args) { |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnClientToServerMessage); |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnClientToServerMessage); |
|
|
|
call_args.client_to_server_messages->InterceptAndMap( |
|
|
|
call_args.client_to_server_messages->InterceptAndMap( |
|
|
@ -539,8 +539,7 @@ inline void InterceptClientToServerMessage( |
|
|
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
template <typename Derived> |
|
|
|
inline void InterceptClientToServerMessage( |
|
|
|
inline void InterceptClientToServerMessage( |
|
|
|
absl::StatusOr<MessageHandle> (Derived::Call::* fn)(MessageHandle, |
|
|
|
absl::StatusOr<MessageHandle> (Derived::Call::*fn)(MessageHandle, Derived*), |
|
|
|
Derived*), |
|
|
|
|
|
|
|
FilterCallData<Derived>* call_data, const CallArgs& call_args) { |
|
|
|
FilterCallData<Derived>* call_data, const CallArgs& call_args) { |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnClientToServerMessage); |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnClientToServerMessage); |
|
|
|
call_args.client_to_server_messages->InterceptAndMap( |
|
|
|
call_args.client_to_server_messages->InterceptAndMap( |
|
|
@ -559,7 +558,7 @@ inline void InterceptClientToServerMessage(const NoInterceptor*, void*, void*, |
|
|
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
template <typename Derived> |
|
|
|
inline void InterceptClientToServerMessage( |
|
|
|
inline void InterceptClientToServerMessage( |
|
|
|
ServerMetadataHandle (Derived::Call::* fn)(const Message&), |
|
|
|
ServerMetadataHandle (Derived::Call::*fn)(const Message&), |
|
|
|
typename Derived::Call* call, Derived*, PipeBasedCallSpine* call_spine) { |
|
|
|
typename Derived::Call* call, Derived*, PipeBasedCallSpine* call_spine) { |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnClientToServerMessage); |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnClientToServerMessage); |
|
|
|
call_spine->client_to_server_messages().receiver.InterceptAndMap( |
|
|
|
call_spine->client_to_server_messages().receiver.InterceptAndMap( |
|
|
@ -573,7 +572,7 @@ inline void InterceptClientToServerMessage( |
|
|
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
template <typename Derived> |
|
|
|
inline void InterceptClientToServerMessage( |
|
|
|
inline void InterceptClientToServerMessage( |
|
|
|
ServerMetadataHandle (Derived::Call::* fn)(const Message&, Derived*), |
|
|
|
ServerMetadataHandle (Derived::Call::*fn)(const Message&, Derived*), |
|
|
|
typename Derived::Call* call, Derived* channel, |
|
|
|
typename Derived::Call* call, Derived* channel, |
|
|
|
PipeBasedCallSpine* call_spine) { |
|
|
|
PipeBasedCallSpine* call_spine) { |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnClientToServerMessage); |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnClientToServerMessage); |
|
|
@ -589,7 +588,7 @@ inline void InterceptClientToServerMessage( |
|
|
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
template <typename Derived> |
|
|
|
inline void InterceptClientToServerMessage( |
|
|
|
inline void InterceptClientToServerMessage( |
|
|
|
MessageHandle (Derived::Call::* fn)(MessageHandle, Derived*), |
|
|
|
MessageHandle (Derived::Call::*fn)(MessageHandle, Derived*), |
|
|
|
typename Derived::Call* call, Derived* channel, |
|
|
|
typename Derived::Call* call, Derived* channel, |
|
|
|
PipeBasedCallSpine* call_spine) { |
|
|
|
PipeBasedCallSpine* call_spine) { |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnClientToServerMessage); |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnClientToServerMessage); |
|
|
@ -601,8 +600,7 @@ inline void InterceptClientToServerMessage( |
|
|
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
template <typename Derived> |
|
|
|
inline void InterceptClientToServerMessage( |
|
|
|
inline void InterceptClientToServerMessage( |
|
|
|
absl::StatusOr<MessageHandle> (Derived::Call::* fn)(MessageHandle, |
|
|
|
absl::StatusOr<MessageHandle> (Derived::Call::*fn)(MessageHandle, Derived*), |
|
|
|
Derived*), |
|
|
|
|
|
|
|
typename Derived::Call* call, Derived* channel, |
|
|
|
typename Derived::Call* call, Derived* channel, |
|
|
|
PipeBasedCallSpine* call_spine) { |
|
|
|
PipeBasedCallSpine* call_spine) { |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnClientToServerMessage); |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnClientToServerMessage); |
|
|
@ -622,8 +620,8 @@ inline void InterceptClientInitialMetadata(const NoInterceptor*, void*, void*, |
|
|
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
template <typename Derived> |
|
|
|
inline void InterceptClientInitialMetadata( |
|
|
|
inline void InterceptClientInitialMetadata( |
|
|
|
void (Derived::Call::* fn)(ClientMetadata& md), |
|
|
|
void (Derived::Call::*fn)(ClientMetadata& md), typename Derived::Call* call, |
|
|
|
typename Derived::Call* call, Derived*, PipeBasedCallSpine* call_spine) { |
|
|
|
Derived*, PipeBasedCallSpine* call_spine) { |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnClientInitialMetadata); |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnClientInitialMetadata); |
|
|
|
call_spine->client_initial_metadata().receiver.InterceptAndMap( |
|
|
|
call_spine->client_initial_metadata().receiver.InterceptAndMap( |
|
|
|
[call](ClientMetadataHandle md) { |
|
|
|
[call](ClientMetadataHandle md) { |
|
|
@ -634,7 +632,7 @@ inline void InterceptClientInitialMetadata( |
|
|
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
template <typename Derived> |
|
|
|
inline void InterceptClientInitialMetadata( |
|
|
|
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, |
|
|
|
typename Derived::Call* call, Derived* channel, |
|
|
|
PipeBasedCallSpine* call_spine) { |
|
|
|
PipeBasedCallSpine* call_spine) { |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnClientInitialMetadata); |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnClientInitialMetadata); |
|
|
@ -647,7 +645,7 @@ inline void InterceptClientInitialMetadata( |
|
|
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
template <typename Derived> |
|
|
|
inline void InterceptClientInitialMetadata( |
|
|
|
inline void InterceptClientInitialMetadata( |
|
|
|
ServerMetadataHandle (Derived::Call::* fn)(ClientMetadata& md), |
|
|
|
ServerMetadataHandle (Derived::Call::*fn)(ClientMetadata& md), |
|
|
|
typename Derived::Call* call, Derived*, PipeBasedCallSpine* call_spine) { |
|
|
|
typename Derived::Call* call, Derived*, PipeBasedCallSpine* call_spine) { |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnClientInitialMetadata); |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnClientInitialMetadata); |
|
|
|
call_spine->client_initial_metadata().receiver.InterceptAndMap( |
|
|
|
call_spine->client_initial_metadata().receiver.InterceptAndMap( |
|
|
@ -662,8 +660,8 @@ inline void InterceptClientInitialMetadata( |
|
|
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
template <typename Derived> |
|
|
|
inline void InterceptClientInitialMetadata( |
|
|
|
inline void InterceptClientInitialMetadata( |
|
|
|
ServerMetadataHandle (Derived::Call::* fn)(ClientMetadata& md, |
|
|
|
ServerMetadataHandle (Derived::Call::*fn)(ClientMetadata& md, |
|
|
|
Derived* channel), |
|
|
|
Derived* channel), |
|
|
|
typename Derived::Call* call, Derived* channel, |
|
|
|
typename Derived::Call* call, Derived* channel, |
|
|
|
PipeBasedCallSpine* call_spine) { |
|
|
|
PipeBasedCallSpine* call_spine) { |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnClientInitialMetadata); |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnClientInitialMetadata); |
|
|
@ -679,7 +677,7 @@ inline void InterceptClientInitialMetadata( |
|
|
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
template <typename Derived> |
|
|
|
inline void InterceptClientInitialMetadata( |
|
|
|
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) { |
|
|
|
typename Derived::Call* call, Derived*, PipeBasedCallSpine* call_spine) { |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnClientInitialMetadata); |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnClientInitialMetadata); |
|
|
|
call_spine->client_initial_metadata().receiver.InterceptAndMap( |
|
|
|
call_spine->client_initial_metadata().receiver.InterceptAndMap( |
|
|
@ -695,7 +693,7 @@ inline void InterceptClientInitialMetadata( |
|
|
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
template <typename Derived> |
|
|
|
inline void InterceptClientInitialMetadata( |
|
|
|
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, |
|
|
|
typename Derived::Call* call, Derived* channel, |
|
|
|
PipeBasedCallSpine* call_spine) { |
|
|
|
PipeBasedCallSpine* call_spine) { |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnClientInitialMetadata); |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnClientInitialMetadata); |
|
|
@ -715,7 +713,7 @@ inline void InterceptClientInitialMetadata( |
|
|
|
template <typename Promise, typename Derived> |
|
|
|
template <typename Promise, typename Derived> |
|
|
|
absl::void_t<decltype(StatusCast<ServerMetadataHandle>( |
|
|
|
absl::void_t<decltype(StatusCast<ServerMetadataHandle>( |
|
|
|
std::declval<PromiseResult<Promise>>))> |
|
|
|
std::declval<PromiseResult<Promise>>))> |
|
|
|
InterceptClientInitialMetadata(Promise (Derived::Call::* promise_factory)( |
|
|
|
InterceptClientInitialMetadata(Promise (Derived::Call::*promise_factory)( |
|
|
|
ClientMetadata& md, Derived* channel), |
|
|
|
ClientMetadata& md, Derived* channel), |
|
|
|
typename Derived::Call* call, Derived* channel, |
|
|
|
typename Derived::Call* call, Derived* channel, |
|
|
|
PipeBasedCallSpine* call_spine) { |
|
|
|
PipeBasedCallSpine* call_spine) { |
|
|
@ -741,7 +739,7 @@ inline void InterceptServerInitialMetadata(const NoInterceptor*, void*, |
|
|
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
template <typename Derived> |
|
|
|
inline void InterceptServerInitialMetadata( |
|
|
|
inline void InterceptServerInitialMetadata( |
|
|
|
void (Derived::Call::* fn)(ServerMetadata&), |
|
|
|
void (Derived::Call::*fn)(ServerMetadata&), |
|
|
|
FilterCallData<Derived>* call_data, const CallArgs& call_args) { |
|
|
|
FilterCallData<Derived>* call_data, const CallArgs& call_args) { |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerInitialMetadata); |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerInitialMetadata); |
|
|
|
call_args.server_initial_metadata->InterceptAndMap( |
|
|
|
call_args.server_initial_metadata->InterceptAndMap( |
|
|
@ -753,7 +751,7 @@ inline void InterceptServerInitialMetadata( |
|
|
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
template <typename Derived> |
|
|
|
inline void InterceptServerInitialMetadata( |
|
|
|
inline void InterceptServerInitialMetadata( |
|
|
|
absl::Status (Derived::Call::* fn)(ServerMetadata&), |
|
|
|
absl::Status (Derived::Call::*fn)(ServerMetadata&), |
|
|
|
FilterCallData<Derived>* call_data, const CallArgs& call_args) { |
|
|
|
FilterCallData<Derived>* call_data, const CallArgs& call_args) { |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerInitialMetadata); |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerInitialMetadata); |
|
|
|
call_args.server_initial_metadata->InterceptAndMap( |
|
|
|
call_args.server_initial_metadata->InterceptAndMap( |
|
|
@ -770,7 +768,7 @@ inline void InterceptServerInitialMetadata( |
|
|
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
template <typename Derived> |
|
|
|
inline void InterceptServerInitialMetadata( |
|
|
|
inline void InterceptServerInitialMetadata( |
|
|
|
void (Derived::Call::* fn)(ServerMetadata&, Derived*), |
|
|
|
void (Derived::Call::*fn)(ServerMetadata&, Derived*), |
|
|
|
FilterCallData<Derived>* call_data, const CallArgs& call_args) { |
|
|
|
FilterCallData<Derived>* call_data, const CallArgs& call_args) { |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerInitialMetadata); |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerInitialMetadata); |
|
|
|
call_args.server_initial_metadata->InterceptAndMap( |
|
|
|
call_args.server_initial_metadata->InterceptAndMap( |
|
|
@ -782,7 +780,7 @@ inline void InterceptServerInitialMetadata( |
|
|
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
template <typename Derived> |
|
|
|
inline void InterceptServerInitialMetadata( |
|
|
|
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) { |
|
|
|
FilterCallData<Derived>* call_data, const CallArgs& call_args) { |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerInitialMetadata); |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerInitialMetadata); |
|
|
|
call_args.server_initial_metadata->InterceptAndMap( |
|
|
|
call_args.server_initial_metadata->InterceptAndMap( |
|
|
@ -803,7 +801,7 @@ inline void InterceptServerInitialMetadata(const NoInterceptor*, void*, void*, |
|
|
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
template <typename Derived> |
|
|
|
inline void InterceptServerInitialMetadata( |
|
|
|
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) { |
|
|
|
Derived*, PipeBasedCallSpine* call_spine) { |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerInitialMetadata); |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerInitialMetadata); |
|
|
|
call_spine->server_initial_metadata().sender.InterceptAndMap( |
|
|
|
call_spine->server_initial_metadata().sender.InterceptAndMap( |
|
|
@ -815,7 +813,7 @@ inline void InterceptServerInitialMetadata( |
|
|
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
template <typename Derived> |
|
|
|
inline void InterceptServerInitialMetadata( |
|
|
|
inline void InterceptServerInitialMetadata( |
|
|
|
absl::Status (Derived::Call::* fn)(ServerMetadata&), |
|
|
|
absl::Status (Derived::Call::*fn)(ServerMetadata&), |
|
|
|
typename Derived::Call* call, Derived*, PipeBasedCallSpine* call_spine) { |
|
|
|
typename Derived::Call* call, Derived*, PipeBasedCallSpine* call_spine) { |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerInitialMetadata); |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerInitialMetadata); |
|
|
|
call_spine->server_initial_metadata().sender.InterceptAndMap( |
|
|
|
call_spine->server_initial_metadata().sender.InterceptAndMap( |
|
|
@ -831,7 +829,7 @@ inline void InterceptServerInitialMetadata( |
|
|
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
template <typename Derived> |
|
|
|
inline void InterceptServerInitialMetadata( |
|
|
|
inline void InterceptServerInitialMetadata( |
|
|
|
void (Derived::Call::* fn)(ServerMetadata&, Derived*), |
|
|
|
void (Derived::Call::*fn)(ServerMetadata&, Derived*), |
|
|
|
typename Derived::Call* call, Derived* channel, |
|
|
|
typename Derived::Call* call, Derived* channel, |
|
|
|
PipeBasedCallSpine* call_spine) { |
|
|
|
PipeBasedCallSpine* call_spine) { |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerInitialMetadata); |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerInitialMetadata); |
|
|
@ -844,7 +842,7 @@ inline void InterceptServerInitialMetadata( |
|
|
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
template <typename Derived> |
|
|
|
inline void InterceptServerInitialMetadata( |
|
|
|
inline void InterceptServerInitialMetadata( |
|
|
|
absl::Status (Derived::Call::* fn)(ServerMetadata&, Derived*), |
|
|
|
absl::Status (Derived::Call::*fn)(ServerMetadata&, Derived*), |
|
|
|
typename Derived::Call* call, Derived* channel, |
|
|
|
typename Derived::Call* call, Derived* channel, |
|
|
|
PipeBasedCallSpine* call_spine) { |
|
|
|
PipeBasedCallSpine* call_spine) { |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerInitialMetadata); |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerInitialMetadata); |
|
|
@ -864,7 +862,7 @@ inline void InterceptServerToClientMessage(const NoInterceptor*, void*, |
|
|
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
template <typename Derived> |
|
|
|
inline void InterceptServerToClientMessage( |
|
|
|
inline void InterceptServerToClientMessage( |
|
|
|
ServerMetadataHandle (Derived::Call::* fn)(const Message&), |
|
|
|
ServerMetadataHandle (Derived::Call::*fn)(const Message&), |
|
|
|
FilterCallData<Derived>* call_data, const CallArgs& call_args) { |
|
|
|
FilterCallData<Derived>* call_data, const CallArgs& call_args) { |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerToClientMessage); |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerToClientMessage); |
|
|
|
call_args.server_to_client_messages->InterceptAndMap( |
|
|
|
call_args.server_to_client_messages->InterceptAndMap( |
|
|
@ -879,7 +877,7 @@ inline void InterceptServerToClientMessage( |
|
|
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
template <typename Derived> |
|
|
|
inline void InterceptServerToClientMessage( |
|
|
|
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) { |
|
|
|
FilterCallData<Derived>* call_data, const CallArgs& call_args) { |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerToClientMessage); |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerToClientMessage); |
|
|
|
call_args.server_to_client_messages->InterceptAndMap( |
|
|
|
call_args.server_to_client_messages->InterceptAndMap( |
|
|
@ -895,7 +893,7 @@ inline void InterceptServerToClientMessage( |
|
|
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
template <typename Derived> |
|
|
|
inline void InterceptServerToClientMessage( |
|
|
|
inline void InterceptServerToClientMessage( |
|
|
|
MessageHandle (Derived::Call::* fn)(MessageHandle, Derived*), |
|
|
|
MessageHandle (Derived::Call::*fn)(MessageHandle, Derived*), |
|
|
|
FilterCallData<Derived>* call_data, const CallArgs& call_args) { |
|
|
|
FilterCallData<Derived>* call_data, const CallArgs& call_args) { |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerToClientMessage); |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerToClientMessage); |
|
|
|
call_args.server_to_client_messages->InterceptAndMap( |
|
|
|
call_args.server_to_client_messages->InterceptAndMap( |
|
|
@ -907,8 +905,7 @@ inline void InterceptServerToClientMessage( |
|
|
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
template <typename Derived> |
|
|
|
inline void InterceptServerToClientMessage( |
|
|
|
inline void InterceptServerToClientMessage( |
|
|
|
absl::StatusOr<MessageHandle> (Derived::Call::* fn)(MessageHandle, |
|
|
|
absl::StatusOr<MessageHandle> (Derived::Call::*fn)(MessageHandle, Derived*), |
|
|
|
Derived*), |
|
|
|
|
|
|
|
FilterCallData<Derived>* call_data, const CallArgs& call_args) { |
|
|
|
FilterCallData<Derived>* call_data, const CallArgs& call_args) { |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerToClientMessage); |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerToClientMessage); |
|
|
|
call_args.server_to_client_messages->InterceptAndMap( |
|
|
|
call_args.server_to_client_messages->InterceptAndMap( |
|
|
@ -927,7 +924,7 @@ inline void InterceptServerToClientMessage(const NoInterceptor*, void*, void*, |
|
|
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
template <typename Derived> |
|
|
|
inline void InterceptServerToClientMessage( |
|
|
|
inline void InterceptServerToClientMessage( |
|
|
|
ServerMetadataHandle (Derived::Call::* fn)(const Message&), |
|
|
|
ServerMetadataHandle (Derived::Call::*fn)(const Message&), |
|
|
|
typename Derived::Call* call, Derived*, PipeBasedCallSpine* call_spine) { |
|
|
|
typename Derived::Call* call, Derived*, PipeBasedCallSpine* call_spine) { |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerToClientMessage); |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerToClientMessage); |
|
|
|
call_spine->server_to_client_messages().sender.InterceptAndMap( |
|
|
|
call_spine->server_to_client_messages().sender.InterceptAndMap( |
|
|
@ -941,7 +938,7 @@ inline void InterceptServerToClientMessage( |
|
|
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
template <typename Derived> |
|
|
|
inline void InterceptServerToClientMessage( |
|
|
|
inline void InterceptServerToClientMessage( |
|
|
|
ServerMetadataHandle (Derived::Call::* fn)(const Message&, Derived*), |
|
|
|
ServerMetadataHandle (Derived::Call::*fn)(const Message&, Derived*), |
|
|
|
typename Derived::Call* call, Derived* channel, |
|
|
|
typename Derived::Call* call, Derived* channel, |
|
|
|
PipeBasedCallSpine* call_spine) { |
|
|
|
PipeBasedCallSpine* call_spine) { |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerToClientMessage); |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerToClientMessage); |
|
|
@ -957,7 +954,7 @@ inline void InterceptServerToClientMessage( |
|
|
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
template <typename Derived> |
|
|
|
inline void InterceptServerToClientMessage( |
|
|
|
inline void InterceptServerToClientMessage( |
|
|
|
MessageHandle (Derived::Call::* fn)(MessageHandle, Derived*), |
|
|
|
MessageHandle (Derived::Call::*fn)(MessageHandle, Derived*), |
|
|
|
typename Derived::Call* call, Derived* channel, |
|
|
|
typename Derived::Call* call, Derived* channel, |
|
|
|
PipeBasedCallSpine* call_spine) { |
|
|
|
PipeBasedCallSpine* call_spine) { |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerToClientMessage); |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerToClientMessage); |
|
|
@ -969,8 +966,7 @@ inline void InterceptServerToClientMessage( |
|
|
|
|
|
|
|
|
|
|
|
template <typename Derived> |
|
|
|
template <typename Derived> |
|
|
|
inline void InterceptServerToClientMessage( |
|
|
|
inline void InterceptServerToClientMessage( |
|
|
|
absl::StatusOr<MessageHandle> (Derived::Call::* fn)(MessageHandle, |
|
|
|
absl::StatusOr<MessageHandle> (Derived::Call::*fn)(MessageHandle, Derived*), |
|
|
|
Derived*), |
|
|
|
|
|
|
|
typename Derived::Call* call, Derived* channel, |
|
|
|
typename Derived::Call* call, Derived* channel, |
|
|
|
PipeBasedCallSpine* call_spine) { |
|
|
|
PipeBasedCallSpine* call_spine) { |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerToClientMessage); |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnServerToClientMessage); |
|
|
@ -1014,7 +1010,7 @@ inline void InterceptServerTrailingMetadata( |
|
|
|
inline void InterceptFinalize(const NoInterceptor*, void*, void*) {} |
|
|
|
inline void InterceptFinalize(const NoInterceptor*, void*, void*) {} |
|
|
|
|
|
|
|
|
|
|
|
template <class Call> |
|
|
|
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) { |
|
|
|
void*, Call* call) { |
|
|
|
GPR_DEBUG_ASSERT(fn == &Call::OnFinalize); |
|
|
|
GPR_DEBUG_ASSERT(fn == &Call::OnFinalize); |
|
|
|
GetContext<CallFinalization>()->Add( |
|
|
|
GetContext<CallFinalization>()->Add( |
|
|
@ -1025,7 +1021,7 @@ inline void InterceptFinalize(void (Call::* fn)(const grpc_call_final_info*), |
|
|
|
|
|
|
|
|
|
|
|
template <class Derived> |
|
|
|
template <class Derived> |
|
|
|
inline void InterceptFinalize( |
|
|
|
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) { |
|
|
|
Derived* channel, typename Derived::Call* call) { |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnFinalize); |
|
|
|
GPR_DEBUG_ASSERT(fn == &Derived::Call::OnFinalize); |
|
|
|
GetContext<CallFinalization>()->Add( |
|
|
|
GetContext<CallFinalization>()->Add( |
|
|
|