Index: content/common/frame_messages.h |
diff --git a/content/common/frame_messages.h b/content/common/frame_messages.h |
index fe603b0d672bcd9e3f4ac7387e81dac872899320..222c926f3f10ef3d6731c46106f7246cc2e87dba 100644 |
--- a/content/common/frame_messages.h |
+++ b/content/common/frame_messages.h |
@@ -13,6 +13,7 @@ |
#include "content/public/common/common_param_traits.h" |
#include "content/public/common/context_menu_params.h" |
#include "content/public/common/frame_navigate_params.h" |
+#include "content/public/common/javascript_message_type.h" |
#include "content/public/common/page_state.h" |
#include "ipc/ipc_message_macros.h" |
#include "url/gurl.h" |
@@ -520,3 +521,22 @@ IPC_MESSAGE_ROUTED2(FrameHostMsg_InitializeChildFrame, |
IPC_MESSAGE_ROUTED2(FrameHostMsg_JavaScriptExecuteResponse, |
int /* id */, |
base::ListValue /* result */) |
+ |
+// A request to run a JavaScript dialog. |
+IPC_SYNC_MESSAGE_ROUTED4_2(FrameHostMsg_RunJavaScriptMessage, |
+ base::string16 /* in - alert message */, |
+ base::string16 /* in - default prompt */, |
+ GURL /* in - originating page URL */, |
+ content::JavaScriptMessageType /* in - type */, |
+ bool /* out - success */, |
+ base::string16 /* out - user_input field */) |
+ |
+// Displays a dialog to confirm that the user wants to navigate away from the |
+// page. Replies true if yes, and false otherwise. The reply string is ignored, |
+// but is included so that we can use OnJavaScriptMessageBoxClosed. |
+IPC_SYNC_MESSAGE_ROUTED3_2(FrameHostMsg_RunBeforeUnloadConfirm, |
+ GURL, /* in - originating frame URL */ |
+ base::string16 /* in - alert message */, |
+ bool /* in - is a reload */, |
+ bool /* out - success */, |
+ base::string16 /* out - This is ignored.*/) |