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

Unified Diff: webkit/plugins/ppapi/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/plugins/ppapi/mock_plugin_delegate.cc ('k') | webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/plugin_delegate.h
diff --git a/webkit/plugins/ppapi/plugin_delegate.h b/webkit/plugins/ppapi/plugin_delegate.h
index 65506e7fb48611c287a496ba01f5c4976575ddd2..c45704e4fb6b4dc89b27d8dd986f5b681a421105 100644
--- a/webkit/plugins/ppapi/plugin_delegate.h
+++ b/webkit/plugins/ppapi/plugin_delegate.h
@@ -78,6 +78,8 @@ class PluginModule;
class PPB_Broker_Impl;
class PPB_Flash_Menu_Impl;
class PPB_Flash_NetConnector_Impl;
+class PPB_TCPSocket_Private_Impl;
+class PPB_UDPSocket_Private_Impl;
// Virtual interface that the browser implements to implement features for
// PPAPI plugins.
@@ -406,6 +408,34 @@ class PluginDelegate {
webkit::ppapi::PPB_Flash_NetConnector_Impl* connector,
const PP_NetAddress_Private* addr) = 0;
+ // For PPB_TCPSocket_Private.
+ virtual uint32 TCPSocketCreate() = 0;
+ virtual void TCPSocketConnect(PPB_TCPSocket_Private_Impl* socket,
+ uint32 socket_id,
+ const std::string& host,
+ uint16_t port) = 0;
+ virtual void TCPSocketConnectWithNetAddress(
+ PPB_TCPSocket_Private_Impl* socket,
+ uint32 socket_id,
+ const PP_NetAddress_Private& addr) = 0;
+ virtual void TCPSocketSSLHandshake(uint32 socket_id,
+ const std::string& server_name,
+ uint16_t server_port) = 0;
+ virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read) = 0;
+ virtual void TCPSocketWrite(uint32 socket_id, const std::string& buffer) = 0;
+ virtual void TCPSocketDisconnect(uint32 socket_id) = 0;
+
+ // For PPB_UDPSocket_Private.
+ virtual uint32 UDPSocketCreate() = 0;
+ virtual void UDPSocketBind(PPB_UDPSocket_Private_Impl* socket,
+ uint32 socket_id,
+ const PP_NetAddress_Private& addr) = 0;
+ virtual void UDPSocketRecvFrom(uint32 socket_id, int32_t num_bytes) = 0;
+ virtual void UDPSocketSendTo(uint32 socket_id,
+ const std::string& buffer,
+ const PP_NetAddress_Private& addr) = 0;
+ virtual void UDPSocketClose(uint32 socket_id) = 0;
+
// Show the given context menu at the given position (in the plugin's
// coordinates).
virtual int32_t ShowContextMenu(
« no previous file with comments | « webkit/plugins/ppapi/mock_plugin_delegate.cc ('k') | webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698