Make PepperUdpSocketMessageFilter use NetworkService UDP API.
This CL moves all of the logic over to the UI thread, to keep things
relatively simple and minimize thread hops, since that's where core
network service objects live.
It also fixes a pre-existing bug in the PPAPI UDP code, where read
errors that occur when there's no pending read are converted into
0-byte read successes.
This is a reland of https://chromium-review.googlesource.com/1171568,
which was reverted due to tests failing on OSX when broadcast was set
only after calling Bind, due to the Bind call failing. The new CL
uses a new UDPSocketOption to allow broadcast before calling Bind on
the underlying socket.
Bug: 848078, 876824
Reviewed-by: Matt Menke <email@example.com>
Reviewed-by: Bill Budge <firstname.lastname@example.org>
Reviewed-by: John Abd-El-Malek <email@example.com>
Commit-Queue: Matt Menke <firstname.lastname@example.org>
5 files changed