| Index: ppapi/proxy/plugin_main_nacl.cc
|
| diff --git a/ppapi/proxy/plugin_main_nacl.cc b/ppapi/proxy/plugin_main_nacl.cc
|
| index 8077bdf64566151062168f82c393d0c235392480..d0dbd68669da0cf264d42cfef3cc43965f16ecbe 100644
|
| --- a/ppapi/proxy/plugin_main_nacl.cc
|
| +++ b/ppapi/proxy/plugin_main_nacl.cc
|
| @@ -85,6 +85,9 @@ class PpapiDispatcher : public ProxyChannel,
|
| const ppapi::PpapiPermissions& permissions,
|
| bool incognito,
|
| SerializedHandle handle);
|
| + void OnMsgResourceReply(
|
| + const ppapi::proxy::ResourceMessageReplyParams& reply_params,
|
| + const IPC::Message& nested_msg);
|
| void OnPluginDispatcherMessageReceived(const IPC::Message& msg);
|
|
|
| std::set<PP_Instance> instances_;
|
| @@ -163,6 +166,7 @@ void PpapiDispatcher::SetActiveURL(const std::string& url) {
|
| bool PpapiDispatcher::OnMessageReceived(const IPC::Message& msg) {
|
| IPC_BEGIN_MESSAGE_MAP(PpapiDispatcher, msg)
|
| IPC_MESSAGE_HANDLER(PpapiMsg_CreateNaClChannel, OnMsgCreateNaClChannel)
|
| + IPC_MESSAGE_HANDLER(PpapiPluginMsg_ResourceReply, OnMsgResourceReply)
|
| // All other messages are simply forwarded to a PluginDispatcher.
|
| IPC_MESSAGE_UNHANDLED(OnPluginDispatcherMessageReceived(msg))
|
| IPC_END_MESSAGE_MAP()
|
| @@ -191,6 +195,13 @@ void PpapiDispatcher::OnMsgCreateNaClChannel(
|
| // lifetime of the attached channel.
|
| }
|
|
|
| +void PpapiDispatcher::OnMsgResourceReply(
|
| + const ppapi::proxy::ResourceMessageReplyParams& reply_params,
|
| + const IPC::Message& nested_msg) {
|
| + ppapi::proxy::PluginDispatcher::DispatchResourceReply(reply_params,
|
| + nested_msg);
|
| +}
|
| +
|
| void PpapiDispatcher::OnPluginDispatcherMessageReceived(
|
| const IPC::Message& msg) {
|
| // The first parameter should be a plugin dispatcher ID.
|
|
|