|
|
|
@ -29,6 +29,7 @@ |
|
|
|
|
#include "src/core/ext/transport/chttp2/transport/bin_encoder.h" |
|
|
|
|
#include "src/core/ext/transport/chttp2/transport/incoming_metadata.h" |
|
|
|
|
#include "src/core/ext/transport/cronet/transport/cronet_transport.h" |
|
|
|
|
#include "src/core/lib/debug/trace.h" |
|
|
|
|
#include "src/core/lib/gpr/host_port.h" |
|
|
|
|
#include "src/core/lib/gpr/string.h" |
|
|
|
|
#include "src/core/lib/gprpp/manual_constructor.h" |
|
|
|
@ -45,14 +46,12 @@ |
|
|
|
|
#define GRPC_HEADER_SIZE_IN_BYTES 5 |
|
|
|
|
#define GRPC_FLUSH_READ_SIZE 4096 |
|
|
|
|
|
|
|
|
|
#define CRONET_LOG(...) \ |
|
|
|
|
do { \
|
|
|
|
|
if (grpc_cronet_trace) gpr_log(__VA_ARGS__); \
|
|
|
|
|
grpc_core::TraceFlag grpc_cronet_trace(false, "cronet"); |
|
|
|
|
#define CRONET_LOG(...) \ |
|
|
|
|
do { \
|
|
|
|
|
if (grpc_cronet_trace.enabled()) gpr_log(__VA_ARGS__); \
|
|
|
|
|
} while (0) |
|
|
|
|
|
|
|
|
|
/* TODO (makdharma): Hook up into the wider tracing mechanism */ |
|
|
|
|
int grpc_cronet_trace = 0; |
|
|
|
|
|
|
|
|
|
enum e_op_result { |
|
|
|
|
ACTION_TAKEN_WITH_CALLBACK, |
|
|
|
|
ACTION_TAKEN_NO_CALLBACK, |
|
|
|
|