diff options
author | toyoshim@chromium.org <toyoshim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-09 03:43:48 +0000 |
---|---|---|
committer | toyoshim@chromium.org <toyoshim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-09 03:43:48 +0000 |
commit | 9d5eadf3af4cdd5cb2fd9bce44b87532e919ec82 (patch) | |
tree | d441385646386a78ec7adf995b6965081c7bfbd6 /ppapi/host | |
parent | 7f06df0de9f7d7ee95d8205be4cff7a7617813e7 (diff) | |
download | chromium_src-9d5eadf3af4cdd5cb2fd9bce44b87532e919ec82.zip chromium_src-9d5eadf3af4cdd5cb2fd9bce44b87532e919ec82.tar.gz chromium_src-9d5eadf3af4cdd5cb2fd9bce44b87532e919ec82.tar.bz2 |
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
Diffstat (limited to 'ppapi/host')
-rw-r--r-- | ppapi/host/ppapi_host.cc | 6 | ||||
-rw-r--r-- | ppapi/host/ppapi_host.h | 3 |
2 files changed, 9 insertions, 0 deletions
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<HostFactory> 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<HostFactory> filter); |