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

Side by Side Diff: ppapi/proxy/ppb_udp_socket_private_proxy.h

Issue 10735056: AllowBroadcast() is exposed to NaCl. (Closed) Base URL: http://git.chromium.org/chromium/src.git@udp_broadcast
Patch Set: Fixed comments. 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PPAPI_PROXY_PPB_UDP_SOCKET_PRIVATE_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPB_UDP_SOCKET_PRIVATE_PROXY_H_
6 #define PPAPI_PROXY_PPB_UDP_SOCKET_PRIVATE_PROXY_H_ 6 #define PPAPI_PROXY_PPB_UDP_SOCKET_PRIVATE_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 12 matching lines...) Expand all
23 23
24 static PP_Resource CreateProxyResource(PP_Instance instance); 24 static PP_Resource CreateProxyResource(PP_Instance instance);
25 25
26 // InterfaceProxy implementation. 26 // InterfaceProxy implementation.
27 virtual bool OnMessageReceived(const IPC::Message& msg); 27 virtual bool OnMessageReceived(const IPC::Message& msg);
28 28
29 static const ApiID kApiID = API_ID_PPB_UDPSOCKET_PRIVATE; 29 static const ApiID kApiID = API_ID_PPB_UDPSOCKET_PRIVATE;
30 30
31 private: 31 private:
32 // Browser->plugin message handlers. 32 // Browser->plugin message handlers.
33 void OnMsgSetSocketFeatureACK(uint32 plugin_dispatcher_id,
34 uint32 socket_id,
35 bool succeeded);
33 void OnMsgBindACK(uint32 plugin_dispatcher_id, 36 void OnMsgBindACK(uint32 plugin_dispatcher_id,
34 uint32 socket_id, 37 uint32 socket_id,
35 bool succeeded, 38 bool succeeded,
36 const PP_NetAddress_Private& bound_addr); 39 const PP_NetAddress_Private& bound_addr);
37 void OnMsgRecvFromACK(uint32 plugin_dispatcher_id, 40 void OnMsgRecvFromACK(uint32 plugin_dispatcher_id,
38 uint32 socket_id, 41 uint32 socket_id,
39 bool succeeded, 42 bool succeeded,
40 const std::string& data, 43 const std::string& data,
41 const PP_NetAddress_Private& addr); 44 const PP_NetAddress_Private& addr);
42 void OnMsgSendToACK(uint32 plugin_dispatcher_id, 45 void OnMsgSendToACK(uint32 plugin_dispatcher_id,
43 uint32 socket_id, 46 uint32 socket_id,
44 bool succeeded, 47 bool succeeded,
45 int32_t bytes_written); 48 int32_t bytes_written);
46 49
47 DISALLOW_COPY_AND_ASSIGN(PPB_UDPSocket_Private_Proxy); 50 DISALLOW_COPY_AND_ASSIGN(PPB_UDPSocket_Private_Proxy);
48 }; 51 };
49 52
50 } // namespace proxy 53 } // namespace proxy
51 } // namespace ppapi 54 } // namespace ppapi
52 55
53 #endif // PPAPI_PROXY_PPB_UDP_SOCKET_PRIVATE_PROXY_H_ 56 #endif // PPAPI_PROXY_PPB_UDP_SOCKET_PRIVATE_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698