| Index: content/browser/renderer_host/render_view_host_impl.cc
|
| diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
|
| index fb2a07840610277ef4363724998e1d23656589e7..8f5ac85ad64892a64154fc4e5465f518b2c39692 100644
|
| --- a/content/browser/renderer_host/render_view_host_impl.cc
|
| +++ b/content/browser/renderer_host/render_view_host_impl.cc
|
| @@ -945,6 +945,7 @@ bool RenderViewHostImpl::OnMessageReceived(const IPC::Message& msg) {
|
| OnMsgDidChangeNumWheelEvents)
|
| IPC_MESSAGE_HANDLER(ViewHostMsg_RouteCloseEvent,
|
| OnMsgRouteCloseEvent)
|
| + IPC_MESSAGE_HANDLER(ViewHostMsg_RouteMessageEvent, OnMsgRouteMessageEvent)
|
| IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_RunJavaScriptMessage,
|
| OnMsgRunJavaScriptMessage)
|
| IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_RunBeforeUnloadConfirm,
|
| @@ -1351,6 +1352,12 @@ void RenderViewHostImpl::OnMsgRouteCloseEvent() {
|
| delegate_->RouteCloseEvent(this);
|
| }
|
|
|
| +void RenderViewHostImpl::OnMsgRouteMessageEvent(
|
| + const ViewHostMsg_PostMessage_Params& params) {
|
| + // Give to the delegate to route to the active RenderViewHost.
|
| + delegate_->RouteMessageEvent(this, params);
|
| +}
|
| +
|
| void RenderViewHostImpl::OnMsgRunJavaScriptMessage(
|
| const string16& message,
|
| const string16& default_prompt,
|
|
|