Media remoting refactoring on sending streams to CastRemotingSender.

In media remoting, the demuxed streams are sent to CastRemotingSender
through mojo data pipe. This CL refactered the reading/writing the data
from/into mojo data pipe by using MojoDataPipeReader/Writer. Removed the
notification of each data chunk size when sending a large frame by
multiple data chunks. The MojoDataPipeReader can wait till receiving all
data of the requested size.

Bug: 734672
Change-Id: Id3bb286f41dfbe29d14eb92c67ae0b43789e449e
Reviewed-on: https://chromium-review.googlesource.com/818468
Commit-Queue: Xiangjun Zhang <[email protected]>
Reviewed-by: Dan Sanders <[email protected]>
Reviewed-by: Daniel Cheng <[email protected]>
Reviewed-by: Yuri Wiitala <[email protected]>
Cr-Commit-Position: refs/heads/master@{#527232}
14 files changed