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

Unified Diff: content/renderer/pepper_plugin_delegate_impl.h

Issue 9283022: Exposed Listen and Accept methods to plugin. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added documentation for PPB_TCPServerSocket_Private methods, Create method became async. 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
« no previous file with comments | « content/content_browser.gypi ('k') | content/renderer/pepper_plugin_delegate_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper_plugin_delegate_impl.h
diff --git a/content/renderer/pepper_plugin_delegate_impl.h b/content/renderer/pepper_plugin_delegate_impl.h
index d7ff48831ecd8786d924d4ae371b64bdb628e734..5536e47df05aee5de488c6c60c38ca556e35808d 100644
--- a/content/renderer/pepper_plugin_delegate_impl.h
+++ b/content/renderer/pepper_plugin_delegate_impl.h
@@ -7,6 +7,7 @@
#pragma once
#include <map>
+#include <queue>
#include <set>
#include <string>
@@ -336,6 +337,9 @@ class PepperPluginDelegateImpl
virtual void TCPSocketWrite(uint32 socket_id,
const std::string& buffer) OVERRIDE;
virtual void TCPSocketDisconnect(uint32 socket_id) OVERRIDE;
+ virtual void TCPSocketRegister(
+ webkit::ppapi::PPB_TCPSocket_Private_Impl* socket,
+ uint32 socket_id) OVERRIDE;
virtual uint32 UDPSocketCreate() OVERRIDE;
virtual void UDPSocketBind(
@@ -349,6 +353,16 @@ class PepperPluginDelegateImpl
const PP_NetAddress_Private& addr) OVERRIDE;
virtual void UDPSocketClose(uint32 socket_id) OVERRIDE;
brettw 2012/02/09 00:13:48 No blank lines in a block of functions implementin
ygorshenin1 2012/02/09 15:00:10 Done.
+ virtual bool TCPServerSocketInitialize(
+ webkit::ppapi::PPB_TCPServerSocket_Private_Impl* socket) OVERRIDE;
+ virtual void TCPServerSocketListen(
+ webkit::ppapi::PPB_TCPServerSocket_Private_Impl* socket,
+ uint32 socket_id,
+ const PP_NetAddress_Private& addr,
+ int32_t backlog) OVERRIDE;
+ virtual void TCPServerSocketAccept(uint32 socket_id) OVERRIDE;
+ virtual void TCPServerSocketStopListening(uint32 socket_id) OVERRIDE;
+
virtual int32_t ShowContextMenu(
webkit::ppapi::PluginInstance* instance,
webkit::ppapi::PPB_Flash_Menu_Impl* menu,
@@ -423,6 +437,17 @@ class PepperPluginDelegateImpl
const std::string& data,
const PP_NetAddress_Private& addr);
brettw 2012/02/09 00:13:48 I wouldn't do blank lines here either.
ygorshenin1 2012/02/09 15:00:10 Done.
+ void OnTCPServerSocketInitializeACK(uint32 plugin_dispatcher_id,
+ uint32 tcp_server_socket_id);
+ void OnTCPServerSocketListenACK(uint32 plugin_dispatcher_id,
+ uint32 socket_id,
+ bool succeeded);
+ void OnTCPServerSocketAcceptACK(uint32 plugin_dispatcher_id,
+ uint32 tcp_server_socket_id,
+ uint32 tcp_socket_id,
+ const PP_NetAddress_Private& local_addr,
+ const PP_NetAddress_Private& remote_addr);
+
CONTENT_EXPORT int GetRoutingId() const;
private:
@@ -468,6 +493,11 @@ class PepperPluginDelegateImpl
IDMap<webkit::ppapi::PPB_UDPSocket_Private_Impl> udp_sockets_;
+ IDMap<webkit::ppapi::PPB_TCPServerSocket_Private_Impl> tcp_server_sockets_;
+
+ std::queue<webkit::ppapi::PPB_TCPServerSocket_Private_Impl*>
+ uninitialized_tcp_server_sockets_;
+
IDMap<scoped_refptr<webkit::ppapi::PPB_Flash_Menu_Impl>,
IDMapOwnPointer> pending_context_menus_;
« no previous file with comments | « content/content_browser.gypi ('k') | content/renderer/pepper_plugin_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698