Add support for multicast in PPB_UDPSocket API

This change introduces two new values to be used with SetOption(), to
set up the behavior of the multicast packets:

 - PP_UDPSOCKET_OPTION_MULTICAST_LOOP (Boolean)

   Whether packets sent from the host to the multicast group will be
   looped back to the host or not.

 - PP_UDPSOCKET_OPTION_MULTICAST_TTL (Integer)

   Sets time-to-live of multicast packets sent to the multicast group.

It also introduces two new functions JoinGroup() and LeaveGroup(), both
of them expecting the address of the multicast group as specified by
the PPB_NetAddress API. These two functions should only be called after
the socket is bound.

This CL adds specific test cases to browser_tests in order to exercise
the different versions of the SetOption function. For this reason, the
PPAPI UDPSocket tests were split into multiple tests, instead of a
single one that enclosed all of them. This way we get clearer
information about the results of each test.

BUG=430939
TEST=browser_tests
NOPRESUBMIT=true

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>

Review URL: https://codereview.chromium.org/704133005

Cr-Commit-Position: refs/heads/master@{#320504}
21 files changed