| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 uint32 socket_id); | 128 uint32 socket_id); |
| 129 virtual uint32 UDPSocketCreate(); | 129 virtual uint32 UDPSocketCreate(); |
| 130 virtual void UDPSocketBind(PPB_UDPSocket_Private_Impl* socket, | 130 virtual void UDPSocketBind(PPB_UDPSocket_Private_Impl* socket, |
| 131 uint32 socket_id, | 131 uint32 socket_id, |
| 132 const PP_NetAddress_Private& addr); | 132 const PP_NetAddress_Private& addr); |
| 133 virtual void UDPSocketRecvFrom(uint32 socket_id, int32_t num_bytes); | 133 virtual void UDPSocketRecvFrom(uint32 socket_id, int32_t num_bytes); |
| 134 virtual void UDPSocketSendTo(uint32 socket_id, | 134 virtual void UDPSocketSendTo(uint32 socket_id, |
| 135 const std::string& buffer, | 135 const std::string& buffer, |
| 136 const PP_NetAddress_Private& addr); | 136 const PP_NetAddress_Private& addr); |
| 137 virtual void UDPSocketClose(uint32 socket_id); | 137 virtual void UDPSocketClose(uint32 socket_id); |
| 138 virtual void TCPServerSocketListen(PPB_TCPServerSocket_Private_Impl* socket, | 138 virtual void TCPServerSocketListen(PP_Resource socket_resource, |
| 139 uint32 temp_socket_id, | |
| 140 const PP_NetAddress_Private& addr, | 139 const PP_NetAddress_Private& addr, |
| 141 int32_t backlog); | 140 int32_t backlog); |
| 142 virtual void TCPServerSocketAccept(uint32 real_socket_id); | 141 virtual void TCPServerSocketAccept(uint32 server_socket_id); |
| 143 virtual void TCPServerSocketStopListening(uint32 real_socket_id, | 142 virtual void TCPServerSocketStopListening(PP_Resource socket_resource, |
| 144 uint32 temp_socket_id); | 143 uint32 socket_id); |
| 145 virtual void RegisterHostResolver( | 144 virtual void RegisterHostResolver( |
| 146 ::ppapi::PPB_HostResolver_Shared* host_resolver, | 145 ::ppapi::PPB_HostResolver_Shared* host_resolver, |
| 147 uint32 host_resolver_id); | 146 uint32 host_resolver_id); |
| 148 virtual void HostResolverResolve( | 147 virtual void HostResolverResolve( |
| 149 uint32 host_resolver_id, | 148 uint32 host_resolver_id, |
| 150 const ::ppapi::HostPortPair& host_port, | 149 const ::ppapi::HostPortPair& host_port, |
| 151 const PP_HostResolver_Private_Hint* hint); | 150 const PP_HostResolver_Private_Hint* hint); |
| 152 virtual void UnregisterHostResolver(uint32 host_resolver_id); | 151 virtual void UnregisterHostResolver(uint32 host_resolver_id); |
| 153 // Add/remove a network list observer. | 152 // Add/remove a network list observer. |
| 154 virtual bool AddNetworkListObserver( | 153 virtual bool AddNetworkListObserver( |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 virtual bool IsPageVisible() const; | 185 virtual bool IsPageVisible() const; |
| 187 virtual int EnumerateDevices(PP_DeviceType_Dev type, | 186 virtual int EnumerateDevices(PP_DeviceType_Dev type, |
| 188 const EnumerateDevicesCallback& callback); | 187 const EnumerateDevicesCallback& callback); |
| 189 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const; | 188 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const; |
| 190 }; | 189 }; |
| 191 | 190 |
| 192 } // namespace ppapi | 191 } // namespace ppapi |
| 193 } // namespace webkit | 192 } // namespace webkit |
| 194 | 193 |
| 195 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ | 194 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ |
| OLD | NEW |