[Remoting] Implement GrpcAsyncDispatcher

Desktop / Chromium - Yuwei Huang [chromium.org] - 27 February 2019 02:01 EST

This CL implements a helper class that adapts gRPC's async unary call paradigm (i.e. the completion queue) into Chromium's callback-based paradigm.

Bug: 927962 Change-Id: I15c58748a0d024dc5f6953b0312e629fcf8c24b5 Reviewed-on: https://chromium-review.googlesource.com/c/1484736 Commit-Queue: Yuwei Huang

54a4f7330968 [Remoting] Implement GrpcAsyncDispatcher
remoting/signaling/BUILD.gn | 22 ++-
remoting/signaling/grpc_async_call_data.cc | 33 ++++
remoting/signaling/grpc_async_call_data.h | 83 ++++++++
remoting/signaling/grpc_async_dispatcher.cc | 65 +++++++
remoting/signaling/grpc_async_dispatcher.h | 125 ++++++++++++
.../grpc_async_dispatcher_test_services.proto | 21 ++
.../signaling/grpc_async_dispatcher_unittest.cc | 212 +++++++++++++++++++++
7 files changed, 560 insertions(+), 1 deletion(-)

Upstream: git.chromium.org


  • Share