OLD | NEW |
1 // Copyright (c) 2011 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" |
11 #include "ppapi/c/pp_instance.h" | 11 #include "ppapi/c/pp_instance.h" |
(...skipping 13 matching lines...) Expand all Loading... |
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 OnMsgBindACK(uint32 plugin_dispatcher_id, | 33 void OnMsgBindACK(uint32 plugin_dispatcher_id, |
34 uint32 socket_id, | 34 uint32 socket_id, |
35 bool succeeded); | 35 bool succeeded, |
| 36 const PP_NetAddress_Private& bound_addr); |
36 void OnMsgRecvFromACK(uint32 plugin_dispatcher_id, | 37 void OnMsgRecvFromACK(uint32 plugin_dispatcher_id, |
37 uint32 socket_id, | 38 uint32 socket_id, |
38 bool succeeded, | 39 bool succeeded, |
39 const std::string& data, | 40 const std::string& data, |
40 const PP_NetAddress_Private& addr); | 41 const PP_NetAddress_Private& addr); |
41 void OnMsgSendToACK(uint32 plugin_dispatcher_id, | 42 void OnMsgSendToACK(uint32 plugin_dispatcher_id, |
42 uint32 socket_id, | 43 uint32 socket_id, |
43 bool succeeded, | 44 bool succeeded, |
44 int32_t bytes_written); | 45 int32_t bytes_written); |
45 | 46 |
46 DISALLOW_COPY_AND_ASSIGN(PPB_UDPSocket_Private_Proxy); | 47 DISALLOW_COPY_AND_ASSIGN(PPB_UDPSocket_Private_Proxy); |
47 }; | 48 }; |
48 | 49 |
49 } // namespace proxy | 50 } // namespace proxy |
50 } // namespace ppapi | 51 } // namespace ppapi |
51 | 52 |
52 #endif // PPAPI_PROXY_PPB_UDP_SOCKET_PRIVATE_PROXY_H_ | 53 #endif // PPAPI_PROXY_PPB_UDP_SOCKET_PRIVATE_PROXY_H_ |
OLD | NEW |