| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "webkit/plugins/ppapi/plugin_delegate.h" | 8 #include "webkit/plugins/ppapi/plugin_delegate.h" |
| 9 | 9 |
| 10 struct PP_NetAddress_Private; | 10 struct PP_NetAddress_Private; |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 uint32 socket_id, | 118 uint32 socket_id, |
| 119 const std::string& server_name, | 119 const std::string& server_name, |
| 120 uint16_t server_port, | 120 uint16_t server_port, |
| 121 const std::vector<std::vector<char> >& trusted_certs, | 121 const std::vector<std::vector<char> >& trusted_certs, |
| 122 const std::vector<std::vector<char> >& untrusted_certs); | 122 const std::vector<std::vector<char> >& untrusted_certs); |
| 123 virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read); | 123 virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read); |
| 124 virtual void TCPSocketWrite(uint32 socket_id, const std::string& buffer); | 124 virtual void TCPSocketWrite(uint32 socket_id, const std::string& buffer); |
| 125 virtual void TCPSocketDisconnect(uint32 socket_id); | 125 virtual void TCPSocketDisconnect(uint32 socket_id); |
| 126 virtual void RegisterTCPSocket(PPB_TCPSocket_Private_Impl* socket, | 126 virtual void RegisterTCPSocket(PPB_TCPSocket_Private_Impl* socket, |
| 127 uint32 socket_id); | 127 uint32 socket_id); |
| 128 virtual uint32 UDPSocketCreate(); | |
| 129 virtual void UDPSocketSetBoolSocketFeature(PPB_UDPSocket_Private_Impl* socket, | |
| 130 uint32 socket_id, | |
| 131 int32_t name, | |
| 132 bool value); | |
| 133 virtual void UDPSocketBind(PPB_UDPSocket_Private_Impl* socket, | |
| 134 uint32 socket_id, | |
| 135 const PP_NetAddress_Private& addr); | |
| 136 virtual void UDPSocketRecvFrom(uint32 socket_id, int32_t num_bytes); | |
| 137 virtual void UDPSocketSendTo(uint32 socket_id, | |
| 138 const std::string& buffer, | |
| 139 const PP_NetAddress_Private& addr); | |
| 140 virtual void UDPSocketClose(uint32 socket_id); | |
| 141 virtual void TCPServerSocketListen(PP_Resource socket_resource, | 128 virtual void TCPServerSocketListen(PP_Resource socket_resource, |
| 142 const PP_NetAddress_Private& addr, | 129 const PP_NetAddress_Private& addr, |
| 143 int32_t backlog); | 130 int32_t backlog); |
| 144 virtual void TCPServerSocketAccept(uint32 server_socket_id); | 131 virtual void TCPServerSocketAccept(uint32 server_socket_id); |
| 145 virtual void TCPServerSocketStopListening(PP_Resource socket_resource, | 132 virtual void TCPServerSocketStopListening(PP_Resource socket_resource, |
| 146 uint32 socket_id); | 133 uint32 socket_id); |
| 147 virtual void RegisterHostResolver( | 134 virtual void RegisterHostResolver( |
| 148 ::ppapi::PPB_HostResolver_Shared* host_resolver, | 135 ::ppapi::PPB_HostResolver_Shared* host_resolver, |
| 149 uint32 host_resolver_id); | 136 uint32 host_resolver_id); |
| 150 virtual void HostResolverResolve( | 137 virtual void HostResolverResolve( |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 virtual bool IsPageVisible() const; | 170 virtual bool IsPageVisible() const; |
| 184 virtual int EnumerateDevices(PP_DeviceType_Dev type, | 171 virtual int EnumerateDevices(PP_DeviceType_Dev type, |
| 185 const EnumerateDevicesCallback& callback); | 172 const EnumerateDevicesCallback& callback); |
| 186 virtual void StopEnumerateDevices(int request_id); | 173 virtual void StopEnumerateDevices(int request_id); |
| 187 }; | 174 }; |
| 188 | 175 |
| 189 } // namespace ppapi | 176 } // namespace ppapi |
| 190 } // namespace webkit | 177 } // namespace webkit |
| 191 | 178 |
| 192 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ | 179 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ |
| OLD | NEW |