| 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 21 matching lines...) Expand all Loading... |
| 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 private: | 37 private: |
| 38 // Browser->plugin message handlers. | 38 // Browser->plugin message handlers. |
| 39 void OnMsgConnectACK(uint32 plugin_dispatcher_id, | 39 void OnMsgConnectACK(uint32 plugin_dispatcher_id, |
| 40 uint32 socket_id, | 40 uint32 socket_id, |
| 41 bool succeeded, | 41 bool succeeded, |
| 42 const PP_Flash_NetAddress& local_addr, | 42 const PP_NetAddress_Private& local_addr, |
| 43 const PP_Flash_NetAddress& remote_addr); | 43 const PP_NetAddress_Private& remote_addr); |
| 44 void OnMsgSSLHandshakeACK(uint32 plugin_dispatcher_id, | 44 void OnMsgSSLHandshakeACK(uint32 plugin_dispatcher_id, |
| 45 uint32 socket_id, | 45 uint32 socket_id, |
| 46 bool succeeded); | 46 bool succeeded); |
| 47 void OnMsgReadACK(uint32 plugin_dispatcher_id, | 47 void OnMsgReadACK(uint32 plugin_dispatcher_id, |
| 48 uint32 socket_id, | 48 uint32 socket_id, |
| 49 bool succeeded, | 49 bool succeeded, |
| 50 const std::string& data); | 50 const std::string& data); |
| 51 void OnMsgWriteACK(uint32 plugin_dispatcher_id, | 51 void OnMsgWriteACK(uint32 plugin_dispatcher_id, |
| 52 uint32 socket_id, | 52 uint32 socket_id, |
| 53 bool succeeded, | 53 bool succeeded, |
| 54 int32_t bytes_written); | 54 int32_t bytes_written); |
| 55 | 55 |
| 56 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_TCPSocket_Proxy); | 56 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_TCPSocket_Proxy); |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 } // namespace proxy | 59 } // namespace proxy |
| 60 } // namespace ppapi | 60 } // namespace ppapi |
| 61 | 61 |
| 62 #endif // PPAPI_PROXY_PPB_FLASH_TCP_SOCKET_PROXY_H_ | 62 #endif // PPAPI_PROXY_PPB_FLASH_TCP_SOCKET_PROXY_H_ |
| OLD | NEW |