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

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

Issue 8506016: Remove 'Flash' from TCP/UDP Pepper interfaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: even more rename Created 9 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_FLASH_UDP_SOCKET_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPB_UDP_SOCKET_PRIVATE_PROXY_H_
6 #define PPAPI_PROXY_PPB_FLASH_UDP_SOCKET_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"
12 #include "ppapi/c/pp_resource.h" 12 #include "ppapi/c/pp_resource.h"
13 #include "ppapi/c/private/ppb_flash_udp_socket.h" 13 #include "ppapi/c/private/ppb_udp_socket_private.h"
14 #include "ppapi/proxy/interface_proxy.h" 14 #include "ppapi/proxy/interface_proxy.h"
15 15
16 namespace ppapi { 16 namespace ppapi {
17 namespace proxy { 17 namespace proxy {
18 18
19 // The maximum number of bytes that each PpapiHostMsg_PPBFlashUDPSocket_RecvFrom 19 // The maximum number of bytes that each PpapiHostMsg_PPBUDPSocket_RecvFrom
yzshen1 2011/11/14 20:52:24 Here and line 22: Please update the message name (
Dmitry Polukhin 2011/11/15 09:49:56 Removed private from message name.
20 // message is allowed to request. 20 // message is allowed to request.
21 extern const int32_t kFlashUDPSocketMaxReadSize; 21 extern const int32_t kUDPSocketMaxReadSize;
22 // The maximum number of bytes that each PpapiHostMsg_PPBFlashUDPSocket_SendTo 22 // The maximum number of bytes that each PpapiHostMsg_PPBUDPSocket_SendTo
23 // message is allowed to carry. 23 // message is allowed to carry.
24 extern const int32_t kFlashUDPSocketMaxWriteSize; 24 extern const int32_t kUDPSocketMaxWriteSize;
25 25
26 class PPB_Flash_UDPSocket_Proxy : public InterfaceProxy { 26 class PPB_UDPSocket_Private_Proxy : public InterfaceProxy {
27 public: 27 public:
28 PPB_Flash_UDPSocket_Proxy(Dispatcher* dispatcher); 28 PPB_UDPSocket_Private_Proxy(Dispatcher* dispatcher);
29 virtual ~PPB_Flash_UDPSocket_Proxy(); 29 virtual ~PPB_UDPSocket_Private_Proxy();
30 30
31 static PP_Resource CreateProxyResource(PP_Instance instance); 31 static PP_Resource CreateProxyResource(PP_Instance instance);
32 32
33 // InterfaceProxy implementation. 33 // InterfaceProxy implementation.
34 virtual bool OnMessageReceived(const IPC::Message& msg); 34 virtual bool OnMessageReceived(const IPC::Message& msg);
35 35
36 static const ApiID kApiID = API_ID_PPB_UDPSOCKET_PRIVATE;
37
36 private: 38 private:
37 // Browser->plugin message handlers. 39 // Browser->plugin message handlers.
38 void OnMsgBindACK(uint32 plugin_dispatcher_id, 40 void OnMsgBindACK(uint32 plugin_dispatcher_id,
39 uint32 socket_id, 41 uint32 socket_id,
40 bool succeeded); 42 bool succeeded);
41 void OnMsgRecvFromACK(uint32 plugin_dispatcher_id, 43 void OnMsgRecvFromACK(uint32 plugin_dispatcher_id,
42 uint32 socket_id, 44 uint32 socket_id,
43 bool succeeded, 45 bool succeeded,
44 const std::string& data, 46 const std::string& data,
45 const PP_NetAddress_Private& addr); 47 const PP_NetAddress_Private& addr);
46 void OnMsgSendToACK(uint32 plugin_dispatcher_id, 48 void OnMsgSendToACK(uint32 plugin_dispatcher_id,
47 uint32 socket_id, 49 uint32 socket_id,
48 bool succeeded, 50 bool succeeded,
49 int32_t bytes_written); 51 int32_t bytes_written);
50 52
51 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_UDPSocket_Proxy); 53 DISALLOW_COPY_AND_ASSIGN(PPB_UDPSocket_Private_Proxy);
52 }; 54 };
53 55
54 } // namespace proxy 56 } // namespace proxy
55 } // namespace ppapi 57 } // namespace ppapi
56 58
57 #endif // PPAPI_PROXY_PPB_FLASH_UDP_SOCKET_PROXY_H_ 59 #endif // PPAPI_PROXY_PPB_UDP_SOCKET_PRIVATE_PROXY_H_
58 60
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698