Implement chrome.sockets.udp.setBroadcast.
commit92c5e06599547fa733d45f4c000a31acbe0c66f8
authorreillyg <reillyg@chromium.org>
Sat, 11 Apr 2015 03:47:21 +0000 (10 20:47 -0700)
committerCommit bot <commit-bot@chromium.org>
Sat, 11 Apr 2015 03:48:05 +0000 (11 03:48 +0000)
tree65d1d37266e4a561c982176db39921fbbd05b7bb
parent9045adae17d792e3d0c475f90e906de2b29df1e2
Implement chrome.sockets.udp.setBroadcast.

Enable Chrome Apps to receive broadcast UDP traffic by setting the
SO_BROADCAST option on a socket. This feature piggybacks on existing
permissions as it requires a socket to be bound to the interface where
the broadcast traffic will be received.

BUG=308461

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

Cr-Commit-Position: refs/heads/master@{#324768}
extensions/browser/api/socket/udp_socket.cc
extensions/browser/api/socket/udp_socket.h
extensions/browser/api/sockets_udp/sockets_udp_api.cc
extensions/browser/api/sockets_udp/sockets_udp_api.h
extensions/browser/extension_function_histogram_value.h
extensions/common/api/sockets_udp.idl
extensions/test/data/sockets_udp/api/background.js
tools/metrics/histograms/histograms.xml