Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Unified Diff: webkit/plugins/ppapi/mock_plugin_delegate.h

Issue 8804006: Reland 8688002: PPB_TCPSocket_Private/PPB_UDPSocket_Private are exposed to Browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix destruction issue Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/webkit_glue.gypi ('k') | webkit/plugins/ppapi/mock_plugin_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/mock_plugin_delegate.h
diff --git a/webkit/plugins/ppapi/mock_plugin_delegate.h b/webkit/plugins/ppapi/mock_plugin_delegate.h
index 3670792f99d490892286a5ede73dd1ccca42902b..b1d31586a2da8a6d3d3a2856e0e34d58daea7641 100644
--- a/webkit/plugins/ppapi/mock_plugin_delegate.h
+++ b/webkit/plugins/ppapi/mock_plugin_delegate.h
@@ -104,6 +104,30 @@ class MockPluginDelegate : public PluginDelegate {
virtual int32_t ConnectTcpAddress(
webkit::ppapi::PPB_Flash_NetConnector_Impl* connector,
const PP_NetAddress_Private* addr);
+ virtual uint32 TCPSocketCreate();
+ virtual void TCPSocketConnect(PPB_TCPSocket_Private_Impl* socket,
+ uint32 socket_id,
+ const std::string& host,
+ uint16_t port);
+ virtual void TCPSocketConnectWithNetAddress(
+ PPB_TCPSocket_Private_Impl* socket,
+ uint32 socket_id,
+ const PP_NetAddress_Private& addr);
+ virtual void TCPSocketSSLHandshake(uint32 socket_id,
+ const std::string& server_name,
+ uint16_t server_port);
+ virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read);
+ virtual void TCPSocketWrite(uint32 socket_id, const std::string& buffer);
+ virtual void TCPSocketDisconnect(uint32 socket_id);
+ virtual uint32 UDPSocketCreate();
+ virtual void UDPSocketBind(PPB_UDPSocket_Private_Impl* socket,
+ uint32 socket_id,
+ const PP_NetAddress_Private& addr);
+ virtual void UDPSocketRecvFrom(uint32 socket_id, int32_t num_bytes);
+ virtual void UDPSocketSendTo(uint32 socket_id,
+ const std::string& buffer,
+ const PP_NetAddress_Private& addr);
+ virtual void UDPSocketClose(uint32 socket_id);
virtual int32_t ShowContextMenu(
PluginInstance* instance,
webkit::ppapi::PPB_Flash_Menu_Impl* menu,
« no previous file with comments | « webkit/glue/webkit_glue.gypi ('k') | webkit/plugins/ppapi/mock_plugin_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698