//
// Multiply-included message file, hence no include guard.
+#include <string>
+
+#include "base/strings/string16.h"
#include "chrome/common/extensions/api/webstore/webstore_api_constants.h"
+#include "chrome/common/extensions/webstore_install_result.h"
#include "chrome/common/web_application_info.h"
+#include "extensions/common/stack_frame.h"
#include "ipc/ipc_message_macros.h"
+#include "url/gurl.h"
#define IPC_MESSAGE_START ChromeExtensionMsgStart
IPC_ENUM_TRAITS_MAX_VALUE(extensions::api::webstore::InstallStage,
extensions::api::webstore::INSTALL_STAGE_INSTALLING)
+IPC_ENUM_TRAITS_MAX_VALUE(extensions::webstore_install::Result,
+ extensions::webstore_install::RESULT_LAST)
+
+IPC_STRUCT_TRAITS_BEGIN(extensions::StackFrame)
+ IPC_STRUCT_TRAITS_MEMBER(line_number)
+ IPC_STRUCT_TRAITS_MEMBER(column_number)
+ IPC_STRUCT_TRAITS_MEMBER(source)
+ IPC_STRUCT_TRAITS_MEMBER(function)
+IPC_STRUCT_TRAITS_END()
IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo::IconInfo)
IPC_STRUCT_TRAITS_MEMBER(url)
// Requests application info for the page. The renderer responds back with
// ExtensionHostMsg_DidGetApplicationInfo.
-IPC_MESSAGE_ROUTED1(ChromeExtensionMsg_GetApplicationInfo,
- int32 /* page_id */)
+IPC_MESSAGE_ROUTED0(ChromeExtensionMsg_GetApplicationInfo)
-// Sent by the renderer to implement chrome.webstore.install().
-IPC_MESSAGE_ROUTED5(ExtensionHostMsg_InlineWebstoreInstall,
- int32 /* install id */,
- int32 /* return route id */,
- std::string /* Web Store item ID */,
- GURL /* requestor URL */,
- int /* listeners_mask */)
+// Set the top-level frame to the provided name.
+IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetName,
+ std::string /* frame_name */)
+
+// Toggles visual muting of the render view area. This is on when a constrained
+// window is showing.
+IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetVisuallyDeemphasized,
+ bool /* deemphazied */)
// Sent to the renderer if install stage updates were requested for an inline
// install.
// Send to renderer once the installation mentioned on
// ExtensionHostMsg_InlineWebstoreInstall is complete.
-IPC_MESSAGE_ROUTED3(ExtensionMsg_InlineWebstoreInstallResponse,
+IPC_MESSAGE_ROUTED4(ExtensionMsg_InlineWebstoreInstallResponse,
int32 /* install id */,
bool /* whether the install was successful */,
- std::string /* error */)
+ std::string /* error */,
+ extensions::webstore_install::Result /* result */)
// Messages sent from the renderer to the browser.
-IPC_MESSAGE_ROUTED2(ChromeExtensionHostMsg_DidGetApplicationInfo,
- int32 /* page_id */,
+// Informs the browser of updated frame names.
+IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_UpdateFrameName,
+ bool /* is_top_level */,
+ std::string /* name */)
+
+// Sent by the renderer to check if a URL has permission to trigger a clipboard
+// read/write operation from the DOM.
+IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_CanTriggerClipboardRead,
+ GURL /* origin */,
+ bool /* allowed */)
+IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_CanTriggerClipboardWrite,
+ GURL /* origin */,
+ bool /* allowed */)
+
+// Tells listeners that a detailed message was reported to the console by
+// WebKit.
+IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DetailedConsoleMessageAdded,
+ base::string16 /* message */,
+ base::string16 /* source */,
+ extensions::StackTrace /* stack trace */,
+ int32 /* severity level */)
+
+// Sent by the renderer to implement chrome.webstore.install().
+IPC_MESSAGE_ROUTED5(ExtensionHostMsg_InlineWebstoreInstall,
+ int32 /* install id */,
+ int32 /* return route id */,
+ std::string /* Web Store item ID */,
+ GURL /* requestor URL */,
+ int /* listeners_mask */)
+
+IPC_MESSAGE_ROUTED1(ChromeExtensionHostMsg_DidGetApplicationInfo,
WebApplicationInfo)