Index: content/public/browser/render_view_host_delegate.h |
diff --git a/content/public/browser/render_view_host_delegate.h b/content/public/browser/render_view_host_delegate.h |
index 4d437604a28e7dc5d459bdd677de6862c4c3856d..2be707493e18c16c2a5519a5b828a78fa4618b36 100644 |
--- a/content/public/browser/render_view_host_delegate.h |
+++ b/content/public/browser/render_view_host_delegate.h |
@@ -30,6 +30,7 @@ struct NativeWebKeyboardEvent; |
struct ViewHostMsg_CreateWindow_Params; |
struct ViewHostMsg_DidFailProvisionalLoadWithError_Params; |
struct ViewHostMsg_FrameNavigate_Params; |
+struct ViewHostMsg_PostMessage_Params; |
struct WebDropData; |
struct WebMenuItem; |
struct WebPreferences; |
@@ -327,6 +328,11 @@ class CONTENT_EXPORT RenderViewHostDelegate : public IPC::Channel::Listener { |
// The page wants to close the active view in this tab. |
virtual void RouteCloseEvent(RenderViewHost* rvh) {} |
+ // The page wants to post a message to the active view in this tab. |
+ virtual void RouteMessageEvent( |
+ RenderViewHost* rvh, |
+ const ViewHostMsg_PostMessage_Params& params) {} |
+ |
// A javascript message, confirmation or prompt should be shown. |
virtual void RunJavaScriptMessage(RenderViewHost* rvh, |
const string16& message, |