Index: content/browser/frame_host/render_frame_host_delegate.h |
diff --git a/content/browser/frame_host/render_frame_host_delegate.h b/content/browser/frame_host/render_frame_host_delegate.h |
index efce414d22c6b66990162ab006e2210e4e279c2a..8546b211119ad4afaaf7567b1268a7cffda3a624 100644 |
--- a/content/browser/frame_host/render_frame_host_delegate.h |
+++ b/content/browser/frame_host/render_frame_host_delegate.h |
@@ -7,6 +7,7 @@ |
#include "base/basictypes.h" |
#include "content/common/content_export.h" |
+#include "content/public/common/javascript_message_type.h" |
class GURL; |
@@ -65,6 +66,19 @@ class CONTENT_EXPORT RenderFrameHostDelegate { |
virtual void ShowContextMenu(RenderFrameHost* render_frame_host, |
const ContextMenuParams& params) {} |
+ // A JavaScript message, confirmation or prompt should be shown. |
+ virtual void RunJavaScriptMessage(RenderFrameHost* rfh, |
+ const base::string16& message, |
+ const base::string16& default_prompt, |
+ const GURL& frame_url, |
+ JavaScriptMessageType type, |
+ IPC::Message* reply_msg) {} |
+ |
+ virtual void RunBeforeUnloadConfirm(RenderFrameHost* rfh, |
+ const base::string16& message, |
+ bool is_reload, |
+ IPC::Message* reply_msg) {} |
+ |
// Return this object cast to a WebContents, if it is one. If the object is |
// not a WebContents, returns NULL. |
virtual WebContents* GetAsWebContents(); |