// Messages for platform-native notifications using the Web Notification API.
// Multiply-included message file, hence no include guard.
+#include "content/public/common/show_desktop_notification_params.h"
#include "ipc/ipc_message_macros.h"
#include "third_party/WebKit/public/platform/WebNotificationPermission.h"
#include "url/gurl.h"
int /* request_id */,
blink::WebNotificationPermission /* result */)
+// Informs the renderer that the browser has displayed the notification.
+IPC_MESSAGE_CONTROL1(PlatformNotificationMsg_DidShow,
+ int /* notification_id */)
+
+// Informs the renderer that the notification has been closed.
+IPC_MESSAGE_CONTROL1(PlatformNotificationMsg_DidClose,
+ int /* notification_id */)
+
+// Informs the renderer that the notification has been clicked on.
+IPC_MESSAGE_CONTROL1(PlatformNotificationMsg_DidClick,
+ int /* notification_id */)
+
// Messages sent from the renderer to the browser.
// Requests permission to display platform notifications for |origin|.
IPC_MESSAGE_ROUTED2(PlatformNotificationHostMsg_RequestPermission,
GURL /* origin */,
int /* request_id */)
+
+IPC_MESSAGE_CONTROL2(PlatformNotificationHostMsg_Show,
+ int /* notification_id */,
+ content::ShowDesktopNotificationHostMsgParams /* params */)
+
+IPC_MESSAGE_CONTROL1(PlatformNotificationHostMsg_Close,
+ int /* notification_id */)
+
+IPC_SYNC_MESSAGE_CONTROL1_1(PlatformNotificationHostMsg_CheckPermission,
+ GURL /* origin */,
+ blink::WebNotificationPermission /* result */)