Index: content/browser/renderer_host/pepper/pepper_udp_socket_message_filter.h |
diff --git a/content/browser/renderer_host/pepper/pepper_udp_socket_message_filter.h b/content/browser/renderer_host/pepper/pepper_udp_socket_message_filter.h |
index 50aa6914f53819b2af20a4729f3583a9667a55ef..95822ad02b520357f4d2bb3a31e20d62387cb821 100644 |
--- a/content/browser/renderer_host/pepper/pepper_udp_socket_message_filter.h |
+++ b/content/browser/renderer_host/pepper/pepper_udp_socket_message_filter.h |
@@ -61,7 +61,9 @@ class CONTENT_EXPORT PepperUDPSocketMessageFilter |
SOCKET_OPTION_ADDRESS_REUSE = 1 << 0, |
SOCKET_OPTION_BROADCAST = 1 << 1, |
SOCKET_OPTION_RCVBUF_SIZE = 1 << 2, |
- SOCKET_OPTION_SNDBUF_SIZE = 1 << 3 |
+ SOCKET_OPTION_SNDBUF_SIZE = 1 << 3, |
+ SOCKET_OPTION_MULTICAST_LOOP = 1 << 4, |
+ SOCKET_OPTION_MULTICAST_TTL = 1 << 5 |
}; |
struct PendingSend { |
@@ -95,6 +97,10 @@ class CONTENT_EXPORT PepperUDPSocketMessageFilter |
int32_t OnMsgClose(const ppapi::host::HostMessageContext* context); |
int32_t OnMsgRecvSlotAvailable( |
const ppapi::host::HostMessageContext* context); |
+ int32_t OnMsgJoinGroup(const ppapi::host::HostMessageContext* context, |
+ const PP_NetAddress_Private& addr); |
+ int32_t OnMsgLeaveGroup(const ppapi::host::HostMessageContext* context, |
+ const PP_NetAddress_Private& addr); |
void DoBind(const ppapi::host::ReplyMessageContext& context, |
const PP_NetAddress_Private& addr); |
@@ -133,6 +139,9 @@ class CONTENT_EXPORT PepperUDPSocketMessageFilter |
int32_t rcvbuf_size_; |
int32_t sndbuf_size_; |
+ // Multicast options |
+ int multicast_ttl_; |
+ |
scoped_ptr<net::UDPSocket> socket_; |
bool closed_; |