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

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

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/mock_plugin_delegate.cc
diff --git a/webkit/plugins/ppapi/mock_plugin_delegate.cc b/webkit/plugins/ppapi/mock_plugin_delegate.cc
index 780bf4cb97c0b860c6c0b13636c64a043dbbc378..578941fdcafe1d7343454a5fde1471b52814c23b 100644
--- a/webkit/plugins/ppapi/mock_plugin_delegate.cc
+++ b/webkit/plugins/ppapi/mock_plugin_delegate.cc
@@ -266,6 +266,10 @@ void MockPluginDelegate::TCPSocketWrite(uint32 socket_id,
void MockPluginDelegate::TCPSocketDisconnect(uint32 socket_id) {
}
+void MockPluginDelegate::TCPSocketRegister(PPB_TCPSocket_Private_Impl* socket,
+ uint32 socket_id) {
+}
+
uint32 MockPluginDelegate::UDPSocketCreate() {
return 0;
}
@@ -287,6 +291,24 @@ void MockPluginDelegate::UDPSocketSendTo(uint32 socket_id,
void MockPluginDelegate::UDPSocketClose(uint32 socket_id) {
}
+bool MockPluginDelegate::TCPServerSocketInitialize(
+ PPB_TCPSocket_Private_Impl* socket) {
+ return false;
+}
+
+void MockPluginDelegate::TCPServerSocketListen(
+ PPB_TCPServerSocket_Private_Impl* socket,
+ uint32 socket_id,
+ const PP_NetAddress_Private& addr,
+ int32_t backlog) {
+}
+
+void MockPluginDelegate::TCPServerSocketAccept(uint32 socket_id) {
+}
+
+void MockPluginDelegate::TCPServerSocketStopListening(uint32 socket_id) {
+}
+
int32_t MockPluginDelegate::ShowContextMenu(
PluginInstance* instance,
webkit::ppapi::PPB_Flash_Menu_Impl* menu,

Powered by Google App Engine
This is Rietveld 408576698