OLD | NEW |
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_FLASH_TCP_SOCKET_PROXY_H_ |
6 #define PPAPI_PROXY_PPB_FLASH_TCP_SOCKET_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_FLASH_TCP_SOCKET_PROXY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 PPAPI_PROXY_EXPORT extern const int32_t kFlashTCPSocketMaxReadSize; | 22 PPAPI_PROXY_EXPORT extern const int32_t kFlashTCPSocketMaxReadSize; |
23 // The maximum number of bytes that each PpapiHostMsg_PPBFlashTCPSocket_Write | 23 // The maximum number of bytes that each PpapiHostMsg_PPBFlashTCPSocket_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 kFlashTCPSocketMaxWriteSize; |
26 | 26 |
27 class PPB_Flash_TCPSocket_Proxy : public InterfaceProxy { | 27 class PPB_Flash_TCPSocket_Proxy : public InterfaceProxy { |
28 public: | 28 public: |
29 PPB_Flash_TCPSocket_Proxy(Dispatcher* dispatcher); | 29 PPB_Flash_TCPSocket_Proxy(Dispatcher* dispatcher); |
30 virtual ~PPB_Flash_TCPSocket_Proxy(); | 30 virtual ~PPB_Flash_TCPSocket_Proxy(); |
31 | 31 |
32 static const Info* GetInfo(); | |
33 | |
34 static PP_Resource CreateProxyResource(PP_Instance instance); | 32 static PP_Resource CreateProxyResource(PP_Instance instance); |
35 | 33 |
36 // InterfaceProxy implementation. | 34 // InterfaceProxy implementation. |
37 virtual bool OnMessageReceived(const IPC::Message& msg); | 35 virtual bool OnMessageReceived(const IPC::Message& msg); |
38 | 36 |
39 private: | 37 private: |
40 // Browser->plugin message handlers. | 38 // Browser->plugin message handlers. |
41 void OnMsgConnectACK(uint32 plugin_dispatcher_id, | 39 void OnMsgConnectACK(uint32 plugin_dispatcher_id, |
42 uint32 socket_id, | 40 uint32 socket_id, |
43 bool succeeded, | 41 bool succeeded, |
(...skipping 11 matching lines...) Expand all Loading... |
55 bool succeeded, | 53 bool succeeded, |
56 int32_t bytes_written); | 54 int32_t bytes_written); |
57 | 55 |
58 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_TCPSocket_Proxy); | 56 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_TCPSocket_Proxy); |
59 }; | 57 }; |
60 | 58 |
61 } // namespace proxy | 59 } // namespace proxy |
62 } // namespace ppapi | 60 } // namespace ppapi |
63 | 61 |
64 #endif // PPAPI_PROXY_PPB_FLASH_TCP_SOCKET_PROXY_H_ | 62 #endif // PPAPI_PROXY_PPB_FLASH_TCP_SOCKET_PROXY_H_ |
OLD | NEW |