Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(999)

Unified Diff: ppapi/api/private/ppb_udp_socket_private.idl

Issue 704133005: Pepper: Add support for multicast in PPB_UDPSocket API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase, initial unit tests Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ppapi/api/private/ppb_udp_socket_private.idl
diff --git a/ppapi/api/private/ppb_udp_socket_private.idl b/ppapi/api/private/ppb_udp_socket_private.idl
index 9888a548e9951bc7197e608cb5d58d32153ef895..c1bcc516566b6aba7bf705f803993e9e406e0358 100644
--- a/ppapi/api/private/ppb_udp_socket_private.idl
+++ b/ppapi/api/private/ppb_udp_socket_private.idl
@@ -24,9 +24,29 @@ enum PP_UDPSocketFeature_Private {
// addresses. Value's type should be PP_VARTYPE_BOOL.
PP_UDPSOCKETFEATURE_PRIVATE_BROADCAST = 1,
+ // Whether multicast packets sent from the host to the multicast group should
+ // be looped back to the host or not. Value's type should be PP_VARTYPE_BOOL.
+ PP_UDPSOCKETFEATURE_PRIVATE_MULTICAST_LOOP = 2,
+
+ // Set time-to-live for multicast packets, from 0 to 255. Value's type should
+ // be PP_VARTYPE_INT32.
+ PP_UDPSOCKETFEATURE_PRIVATE_MULTICAST_TTL = 3,
+
+ // Set network interface from which the multicast packets will be sent and
+ // received. Value's type should be PP_VARTYPE_INT32.
+ PP_UDPSOCKETFEATURE_PRIVATE_MULTICAST_IF = 4,
+
+ // Join a multicast group and start receiving packets. Value's type should be
+ // PP_VARTYPE_RESOURCE.
+ PP_UDPSOCKETFEATURE_PRIVATE_MULTICAST_JOIN = 5,
+
+ // Leave a multicast group previously joined. Value's type should be
+ // PP_VARTYPE_RESOURCE.
+ PP_UDPSOCKETFEATURE_PRIVATE_MULTICAST_LEAVE = 6,
+
// Special value for counting the number of available
// features. Should not be passed to SetSocketFeature().
- PP_UDPSOCKETFEATURE_PRIVATE_COUNT = 2
+ PP_UDPSOCKETFEATURE_PRIVATE_COUNT = 7
};
interface PPB_UDPSocket_Private {

Powered by Google App Engine
This is Rietveld 408576698