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

Unified Diff: content/browser/renderer_host/pepper/pepper_udp_socket_message_filter.h

Issue 704133005: Pepper: Add support for multicast in PPB_UDPSocket API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unit tests, thunk code auto generated Created 5 years, 10 months 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: 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_;

Powered by Google App Engine
This is Rietveld 408576698