From 9d5eadf3af4cdd5cb2fd9bce44b87532e919ec82 Mon Sep 17 00:00:00 2001 From: "toyoshim@chromium.org" Date: Tue, 9 Oct 2012 03:43:48 +0000 Subject: Pepper WebSocket API: Implement new design Chrome IPC. This change implements new Chrome IPC for PPB_WebSocket. After this change, all mode including out of process will work with new design. It doesn't depend on old SRPC design any more. BUG=87310,116317 Review URL: https://chromiumcodereview.appspot.com/10944005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160783 0039d316-1c4b-4281-b951-d872f2087c98 --- ppapi/host/ppapi_host.cc | 6 ++++++ ppapi/host/ppapi_host.h | 3 +++ 2 files changed, 9 insertions(+) (limited to 'ppapi/host') diff --git a/ppapi/host/ppapi_host.cc b/ppapi/host/ppapi_host.cc index f13cea0..1361da2 100644 --- a/ppapi/host/ppapi_host.cc +++ b/ppapi/host/ppapi_host.cc @@ -79,6 +79,12 @@ void PpapiHost::SendReply(const ReplyMessageContext& context, } } +void PpapiHost::SendUnsolicitedReply(PP_Resource resource, + const IPC::Message& msg) { + proxy::ResourceMessageReplyParams params(resource, 0); + Send(new PpapiPluginMsg_ResourceReply(params, msg)); +} + void PpapiHost::AddHostFactoryFilter(scoped_ptr filter) { host_factory_filters_.push_back(filter.release()); } diff --git a/ppapi/host/ppapi_host.h b/ppapi/host/ppapi_host.h index 79731e6..3597093 100644 --- a/ppapi/host/ppapi_host.h +++ b/ppapi/host/ppapi_host.h @@ -58,6 +58,9 @@ class PPAPI_HOST_EXPORT PpapiHost : public IPC::Sender, public IPC::Listener { void SendReply(const ReplyMessageContext& context, const IPC::Message& msg); + // Sends the given unsolicited reply message to the plugin. + void SendUnsolicitedReply(PP_Resource resource, const IPC::Message& msg); + // Adds the given host factory filter to the host. The PpapiHost will take // ownership of the pointer. void AddHostFactoryFilter(scoped_ptr filter); -- cgit v1.1