|
|
|
@ -398,7 +398,7 @@ static void execute_from_storage(stream_obj* s) { |
|
|
|
|
*/ |
|
|
|
|
static void on_failed(bidirectional_stream* stream, int net_error) { |
|
|
|
|
CRONET_LOG(GPR_DEBUG, "on_failed(%p, %d)", stream, net_error); |
|
|
|
|
grpc_core::ExecCtx _local_exec_ctx; |
|
|
|
|
grpc_core::ExecCtx exec_ctx; |
|
|
|
|
|
|
|
|
|
stream_obj* s = (stream_obj*)stream->annotation; |
|
|
|
|
gpr_mu_lock(&s->mu); |
|
|
|
@ -424,7 +424,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::ExecCtx _local_exec_ctx; |
|
|
|
|
grpc_core::ExecCtx exec_ctx; |
|
|
|
|
|
|
|
|
|
stream_obj* s = (stream_obj*)stream->annotation; |
|
|
|
|
gpr_mu_lock(&s->mu); |
|
|
|
@ -450,7 +450,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::ExecCtx _local_exec_ctx; |
|
|
|
|
grpc_core::ExecCtx exec_ctx; |
|
|
|
|
|
|
|
|
|
stream_obj* s = (stream_obj*)stream->annotation; |
|
|
|
|
gpr_mu_lock(&s->mu); |
|
|
|
@ -468,7 +468,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::ExecCtx _local_exec_ctx; |
|
|
|
|
grpc_core::ExecCtx exec_ctx; |
|
|
|
|
stream_obj* s = (stream_obj*)stream->annotation; |
|
|
|
|
grpc_cronet_transport* t = (grpc_cronet_transport*)s->curr_ct; |
|
|
|
|
gpr_mu_lock(&s->mu); |
|
|
|
@ -498,7 +498,7 @@ static void on_response_headers_received( |
|
|
|
|
bidirectional_stream* stream, |
|
|
|
|
const bidirectional_stream_header_array* headers, |
|
|
|
|
const char* negotiated_protocol) { |
|
|
|
|
grpc_core::ExecCtx _local_exec_ctx; |
|
|
|
|
grpc_core::ExecCtx exec_ctx; |
|
|
|
|
CRONET_LOG(GPR_DEBUG, "R: on_response_headers_received(%p, %p, %s)", stream, |
|
|
|
|
headers, negotiated_protocol); |
|
|
|
|
stream_obj* s = (stream_obj*)stream->annotation; |
|
|
|
@ -550,7 +550,7 @@ static void on_response_headers_received( |
|
|
|
|
Cronet callback |
|
|
|
|
*/ |
|
|
|
|
static void on_write_completed(bidirectional_stream* stream, const char* data) { |
|
|
|
|
grpc_core::ExecCtx _local_exec_ctx; |
|
|
|
|
grpc_core::ExecCtx exec_ctx; |
|
|
|
|
stream_obj* s = (stream_obj*)stream->annotation; |
|
|
|
|
CRONET_LOG(GPR_DEBUG, "W: on_write_completed(%p, %s)", stream, data); |
|
|
|
|
gpr_mu_lock(&s->mu); |
|
|
|
@ -568,7 +568,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::ExecCtx _local_exec_ctx; |
|
|
|
|
grpc_core::ExecCtx exec_ctx; |
|
|
|
|
stream_obj* s = (stream_obj*)stream->annotation; |
|
|
|
|
CRONET_LOG(GPR_DEBUG, "R: on_read_completed(%p, %p, %d)", stream, data, |
|
|
|
|
count); |
|
|
|
@ -610,7 +610,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::ExecCtx _local_exec_ctx; |
|
|
|
|
grpc_core::ExecCtx exec_ctx; |
|
|
|
|
CRONET_LOG(GPR_DEBUG, "R: on_response_trailers_received(%p,%p)", stream, |
|
|
|
|
trailers); |
|
|
|
|
stream_obj* s = (stream_obj*)stream->annotation; |
|
|
|
|