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

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

Issue 9212047: Add GetBoundAddress to PPB_UDPSocket_Private (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: fix build error after rebase Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/proxy/ppb_udp_socket_private_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/proxy/ppb_udp_socket_private_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698