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

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

Issue 9283022: Exposed Listen and Accept methods to plugin. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added Destroy message for initialized but cancelled sockets. Created 8 years, 10 months 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
Index: webkit/plugins/ppapi/plugin_delegate.h
diff --git a/webkit/plugins/ppapi/plugin_delegate.h b/webkit/plugins/ppapi/plugin_delegate.h
index d91621c8a5fc4d111c3c56f92361f25dbc9a8bfd..13640aa55c04ecc897502f45cb1b2ee126f6e3bf 100644
--- a/webkit/plugins/ppapi/plugin_delegate.h
+++ b/webkit/plugins/ppapi/plugin_delegate.h
@@ -79,6 +79,7 @@ class PluginModule;
class PPB_Broker_Impl;
class PPB_Flash_Menu_Impl;
class PPB_Flash_NetConnector_Impl;
+class PPB_TCPServerSocket_Private_Impl;
class PPB_TCPSocket_Private_Impl;
class PPB_UDPSocket_Private_Impl;
@@ -425,6 +426,8 @@ class PluginDelegate {
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;
+ virtual void RegisterTCPSocket(PPB_TCPSocket_Private_Impl* socket,
+ uint32 socket_id) = 0;
// For PPB_UDPSocket_Private.
virtual uint32 UDPSocketCreate() = 0;
@@ -437,6 +440,18 @@ class PluginDelegate {
const PP_NetAddress_Private& addr) = 0;
virtual void UDPSocketClose(uint32 socket_id) = 0;
+ // For PPB_TCPServerSocket_Private.
+ virtual bool TCPServerSocketInitialize(
+ PPB_TCPServerSocket_Private_Impl* socket) = 0;
+ virtual void TCPServerSocketListen(PPB_TCPServerSocket_Private_Impl* socket,
+ uint32 socket_id,
+ const PP_NetAddress_Private& addr,
+ int32_t backlog) = 0;
+ virtual void TCPServerSocketAccept(uint32 socket_id) = 0;
+ virtual void TCPServerSocketStopListening(uint32 socket_id) = 0;
+ virtual void CancelInitializationOfTCPServerSocket(
+ PPB_TCPServerSocket_Private_Impl* socket) = 0;
+
// Show the given context menu at the given position (in the plugin's
// coordinates).
virtual int32_t ShowContextMenu(

Powered by Google App Engine
This is Rietveld 408576698