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

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

Issue 8688002: PPB_TCPSocket_Private/PPB_UDPSocket_Private are exposed to Browser (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years, 1 month 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 65506e7fb48611c287a496ba01f5c4976575ddd2..d6fe182eace9455666436e8327478d20e2f89128 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 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 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(

Powered by Google App Engine
This is Rietveld 408576698