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 | 144 |
146 // Add/remove a network list observer. | 145 // Add/remove a network list observer. |
147 virtual bool AddNetworkListObserver( | 146 virtual bool AddNetworkListObserver( |
148 webkit_glue::NetworkListObserver* observer) OVERRIDE; | 147 webkit_glue::NetworkListObserver* observer) OVERRIDE; |
149 virtual void RemoveNetworkListObserver( | 148 virtual void RemoveNetworkListObserver( |
150 webkit_glue::NetworkListObserver* observer) OVERRIDE; | 149 webkit_glue::NetworkListObserver* observer) OVERRIDE; |
151 | 150 |
152 virtual int32_t ShowContextMenu( | 151 virtual int32_t ShowContextMenu( |
153 PluginInstance* instance, | 152 PluginInstance* instance, |
154 webkit::ppapi::PPB_Flash_Menu_Impl* menu, | 153 webkit::ppapi::PPB_Flash_Menu_Impl* menu, |
(...skipping 25 matching lines...) Expand all Loading... |
180 virtual bool IsPageVisible() const; | 179 virtual bool IsPageVisible() const; |
181 virtual int EnumerateDevices(PP_DeviceType_Dev type, | 180 virtual int EnumerateDevices(PP_DeviceType_Dev type, |
182 const EnumerateDevicesCallback& callback); | 181 const EnumerateDevicesCallback& callback); |
183 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const; | 182 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const; |
184 }; | 183 }; |
185 | 184 |
186 } // namespace ppapi | 185 } // namespace ppapi |
187 } // namespace webkit | 186 } // namespace webkit |
188 | 187 |
189 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ | 188 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ |
OLD | NEW |