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

Unified Diff: ppapi/proxy/ppb_udp_socket_private_proxy.cc

Issue 10735056: AllowBroadcast() is exposed to NaCl. (Closed) Base URL: http://git.chromium.org/chromium/src.git@udp_broadcast
Patch Set: Sync. Created 8 years, 4 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
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/shared_impl/private/udp_socket_private_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppb_udp_socket_private_proxy.cc
diff --git a/ppapi/proxy/ppb_udp_socket_private_proxy.cc b/ppapi/proxy/ppb_udp_socket_private_proxy.cc
index 1e3a002cfb83c9bbc3e40806a6a79d9bcf862fd5..9b1184ff12e00c480c82731448273bc45ae9fd97 100644
--- a/ppapi/proxy/ppb_udp_socket_private_proxy.cc
+++ b/ppapi/proxy/ppb_udp_socket_private_proxy.cc
@@ -7,6 +7,7 @@
#include <map>
#include "base/logging.h"
+#include "ppapi/c/private/ppb_udp_socket_private.h"
#include "ppapi/proxy/plugin_dispatcher.h"
#include "ppapi/proxy/plugin_globals.h"
#include "ppapi/proxy/plugin_proxy_delegate.h"
@@ -29,6 +30,7 @@ class UDPSocket : public UDPSocketPrivateImpl {
UDPSocket(const HostResource& resource, uint32 socket_id);
virtual ~UDPSocket();
+ virtual void SendBoolSocketFeature(int32_t name, bool value) OVERRIDE;
virtual void SendBind(const PP_NetAddress_Private& addr) OVERRIDE;
virtual void SendRecvFrom(int32_t num_bytes) OVERRIDE;
virtual void SendSendTo(const std::string& data,
@@ -53,6 +55,11 @@ UDPSocket::~UDPSocket() {
Close();
}
+void UDPSocket::SendBoolSocketFeature(int32_t name, bool value) {
+ SendToBrowser(new PpapiHostMsg_PPBUDPSocket_SetBoolSocketFeature(
+ API_ID_PPB_UDPSOCKET_PRIVATE, socket_id_, name, value));
+}
+
void UDPSocket::SendBind(const PP_NetAddress_Private& addr) {
SendToBrowser(new PpapiHostMsg_PPBUDPSocket_Bind(
API_ID_PPB_UDPSOCKET_PRIVATE, socket_id_, addr));
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/shared_impl/private/udp_socket_private_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698