|
|
|
@ -441,6 +441,7 @@ static void convert_cronet_array_to_metadata( |
|
|
|
|
*/ |
|
|
|
|
static void on_failed(bidirectional_stream* stream, int net_error) { |
|
|
|
|
gpr_log(GPR_ERROR, "on_failed(%p, %d)", stream, net_error); |
|
|
|
|
grpc_core::ApplicationCallbackExecCtx callback_exec_ctx; |
|
|
|
|
grpc_core::ExecCtx exec_ctx; |
|
|
|
|
|
|
|
|
|
stream_obj* s = static_cast<stream_obj*>(stream->annotation); |
|
|
|
@ -467,6 +468,7 @@ static void on_failed(bidirectional_stream* stream, int net_error) { |
|
|
|
|
*/ |
|
|
|
|
static void on_canceled(bidirectional_stream* stream) { |
|
|
|
|
CRONET_LOG(GPR_DEBUG, "on_canceled(%p)", stream); |
|
|
|
|
grpc_core::ApplicationCallbackExecCtx callback_exec_ctx; |
|
|
|
|
grpc_core::ExecCtx exec_ctx; |
|
|
|
|
|
|
|
|
|
stream_obj* s = static_cast<stream_obj*>(stream->annotation); |
|
|
|
@ -493,6 +495,7 @@ static void on_canceled(bidirectional_stream* stream) { |
|
|
|
|
*/ |
|
|
|
|
static void on_succeeded(bidirectional_stream* stream) { |
|
|
|
|
CRONET_LOG(GPR_DEBUG, "on_succeeded(%p)", stream); |
|
|
|
|
grpc_core::ApplicationCallbackExecCtx callback_exec_ctx; |
|
|
|
|
grpc_core::ExecCtx exec_ctx; |
|
|
|
|
|
|
|
|
|
stream_obj* s = static_cast<stream_obj*>(stream->annotation); |
|
|
|
@ -511,6 +514,7 @@ static void on_succeeded(bidirectional_stream* stream) { |
|
|
|
|
*/ |
|
|
|
|
static void on_stream_ready(bidirectional_stream* stream) { |
|
|
|
|
CRONET_LOG(GPR_DEBUG, "W: on_stream_ready(%p)", stream); |
|
|
|
|
grpc_core::ApplicationCallbackExecCtx callback_exec_ctx; |
|
|
|
|
grpc_core::ExecCtx exec_ctx; |
|
|
|
|
stream_obj* s = static_cast<stream_obj*>(stream->annotation); |
|
|
|
|
grpc_cronet_transport* t = s->curr_ct; |
|
|
|
@ -541,6 +545,7 @@ static void on_response_headers_received( |
|
|
|
|
bidirectional_stream* stream, |
|
|
|
|
const bidirectional_stream_header_array* headers, |
|
|
|
|
const char* negotiated_protocol) { |
|
|
|
|
grpc_core::ApplicationCallbackExecCtx callback_exec_ctx; |
|
|
|
|
grpc_core::ExecCtx exec_ctx; |
|
|
|
|
CRONET_LOG(GPR_DEBUG, "R: on_response_headers_received(%p, %p, %s)", stream, |
|
|
|
|
headers, negotiated_protocol); |
|
|
|
@ -580,6 +585,7 @@ static void on_response_headers_received( |
|
|
|
|
Cronet callback |
|
|
|
|
*/ |
|
|
|
|
static void on_write_completed(bidirectional_stream* stream, const char* data) { |
|
|
|
|
grpc_core::ApplicationCallbackExecCtx callback_exec_ctx; |
|
|
|
|
grpc_core::ExecCtx exec_ctx; |
|
|
|
|
stream_obj* s = static_cast<stream_obj*>(stream->annotation); |
|
|
|
|
CRONET_LOG(GPR_DEBUG, "W: on_write_completed(%p, %s)", stream, data); |
|
|
|
@ -598,6 +604,7 @@ static void on_write_completed(bidirectional_stream* stream, const char* data) { |
|
|
|
|
*/ |
|
|
|
|
static void on_read_completed(bidirectional_stream* stream, char* data, |
|
|
|
|
int count) { |
|
|
|
|
grpc_core::ApplicationCallbackExecCtx callback_exec_ctx; |
|
|
|
|
grpc_core::ExecCtx exec_ctx; |
|
|
|
|
stream_obj* s = static_cast<stream_obj*>(stream->annotation); |
|
|
|
|
CRONET_LOG(GPR_DEBUG, "R: on_read_completed(%p, %p, %d)", stream, data, |
|
|
|
@ -640,6 +647,7 @@ static void on_read_completed(bidirectional_stream* stream, char* data, |
|
|
|
|
static void on_response_trailers_received( |
|
|
|
|
bidirectional_stream* stream, |
|
|
|
|
const bidirectional_stream_header_array* trailers) { |
|
|
|
|
grpc_core::ApplicationCallbackExecCtx callback_exec_ctx; |
|
|
|
|
grpc_core::ExecCtx exec_ctx; |
|
|
|
|
CRONET_LOG(GPR_DEBUG, "R: on_response_trailers_received(%p,%p)", stream, |
|
|
|
|
trailers); |
|
|
|
|