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