| 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..9459db6dfa9f7dd43c9ea5ff89fc85dd0e4e53aa 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,20 @@ 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,
|
| + bool* did_suppress_message) {}
|
| +
|
| + 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();
|
|
|