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

Side by Side Diff: ppapi/proxy/ppb_tcp_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: resolved last comments 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
« no previous file with comments | « ppapi/proxy/ppb_flash_udp_socket_proxy.cc ('k') | ppapi/proxy/ppb_tcp_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) 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_TCP_SOCKET_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPB_TCP_SOCKET_PRIVATE_PROXY_H_
6 #define PPAPI_PROXY_PPB_FLASH_TCP_SOCKET_PROXY_H_ 6 #define PPAPI_PROXY_PPB_TCP_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_tcp_socket.h" 13 #include "ppapi/c/private/ppb_tcp_socket_private.h"
14 #include "ppapi/proxy/interface_proxy.h" 14 #include "ppapi/proxy/interface_proxy.h"
15 #include "ppapi/proxy/ppapi_proxy_export.h" 15 #include "ppapi/proxy/ppapi_proxy_export.h"
16 16
17 namespace ppapi { 17 namespace ppapi {
18 namespace proxy { 18 namespace proxy {
19 19
20 // The maximum number of bytes that each PpapiHostMsg_PPBFlashTCPSocket_Read 20 // The maximum number of bytes that each PpapiHostMsg_PPBTCPSocket_Read
21 // message is allowed to request. 21 // message is allowed to request.
22 PPAPI_PROXY_EXPORT extern const int32_t kFlashTCPSocketMaxReadSize; 22 PPAPI_PROXY_EXPORT extern const int32_t kTCPSocketMaxReadSize;
23 // The maximum number of bytes that each PpapiHostMsg_PPBFlashTCPSocket_Write 23 // The maximum number of bytes that each PpapiHostMsg_PPBTCPSocket_Write
24 // message is allowed to carry. 24 // message is allowed to carry.
25 PPAPI_PROXY_EXPORT extern const int32_t kFlashTCPSocketMaxWriteSize; 25 PPAPI_PROXY_EXPORT extern const int32_t kTCPSocketMaxWriteSize;
26 26
27 class PPB_Flash_TCPSocket_Proxy : public InterfaceProxy { 27 class PPB_TCPSocket_Private_Proxy : public InterfaceProxy {
28 public: 28 public:
29 PPB_Flash_TCPSocket_Proxy(Dispatcher* dispatcher); 29 PPB_TCPSocket_Private_Proxy(Dispatcher* dispatcher);
30 virtual ~PPB_Flash_TCPSocket_Proxy(); 30 virtual ~PPB_TCPSocket_Private_Proxy();
31 31
32 static PP_Resource CreateProxyResource(PP_Instance instance); 32 static PP_Resource CreateProxyResource(PP_Instance instance);
33 33
34 // InterfaceProxy implementation. 34 // InterfaceProxy implementation.
35 virtual bool OnMessageReceived(const IPC::Message& msg); 35 virtual bool OnMessageReceived(const IPC::Message& msg);
36 36
37 static const ApiID kApiID = API_ID_PPB_TCPSOCKET_PRIVATE;
38
37 private: 39 private:
38 // Browser->plugin message handlers. 40 // Browser->plugin message handlers.
39 void OnMsgConnectACK(uint32 plugin_dispatcher_id, 41 void OnMsgConnectACK(uint32 plugin_dispatcher_id,
40 uint32 socket_id, 42 uint32 socket_id,
41 bool succeeded, 43 bool succeeded,
42 const PP_NetAddress_Private& local_addr, 44 const PP_NetAddress_Private& local_addr,
43 const PP_NetAddress_Private& remote_addr); 45 const PP_NetAddress_Private& remote_addr);
44 void OnMsgSSLHandshakeACK(uint32 plugin_dispatcher_id, 46 void OnMsgSSLHandshakeACK(uint32 plugin_dispatcher_id,
45 uint32 socket_id, 47 uint32 socket_id,
46 bool succeeded); 48 bool succeeded);
47 void OnMsgReadACK(uint32 plugin_dispatcher_id, 49 void OnMsgReadACK(uint32 plugin_dispatcher_id,
48 uint32 socket_id, 50 uint32 socket_id,
49 bool succeeded, 51 bool succeeded,
50 const std::string& data); 52 const std::string& data);
51 void OnMsgWriteACK(uint32 plugin_dispatcher_id, 53 void OnMsgWriteACK(uint32 plugin_dispatcher_id,
52 uint32 socket_id, 54 uint32 socket_id,
53 bool succeeded, 55 bool succeeded,
54 int32_t bytes_written); 56 int32_t bytes_written);
55 57
56 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_TCPSocket_Proxy); 58 DISALLOW_COPY_AND_ASSIGN(PPB_TCPSocket_Private_Proxy);
57 }; 59 };
58 60
59 } // namespace proxy 61 } // namespace proxy
60 } // namespace ppapi 62 } // namespace ppapi
61 63
62 #endif // PPAPI_PROXY_PPB_FLASH_TCP_SOCKET_PROXY_H_ 64 #endif // PPAPI_PROXY_PPB_TCP_SOCKET_PRIVATE_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_flash_udp_socket_proxy.cc ('k') | ppapi/proxy/ppb_tcp_socket_private_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698