| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // IPC messages for desktop notification. | 5 // IPC messages for desktop notification. |
| 6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
| 7 | 7 |
| 8 #include "content/public/common/show_desktop_notification_params.h" | 8 #include "content/public/common/show_desktop_notification_params.h" |
| 9 #include "ipc/ipc_message_macros.h" | 9 #include "ipc/ipc_message_macros.h" |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 // Used to inform the renderer that the browser has displayed its | 25 // Used to inform the renderer that the browser has displayed its |
| 26 // requested notification. | 26 // requested notification. |
| 27 IPC_MESSAGE_ROUTED1(DesktopNotificationMsg_PostDisplay, | 27 IPC_MESSAGE_ROUTED1(DesktopNotificationMsg_PostDisplay, |
| 28 int /* notification_id */) | 28 int /* notification_id */) |
| 29 | 29 |
| 30 // Used to inform the renderer that the browser has encountered an error | 30 // Used to inform the renderer that the browser has encountered an error |
| 31 // trying to display a notification. | 31 // trying to display a notification. |
| 32 IPC_MESSAGE_ROUTED2(DesktopNotificationMsg_PostError, | 32 IPC_MESSAGE_ROUTED2(DesktopNotificationMsg_PostError, |
| 33 int /* notification_id */, | 33 int /* notification_id */, |
| 34 string16 /* message */) | 34 base::string16 /* message */) |
| 35 | 35 |
| 36 // Informs the renderer that the one if its notifications has closed. | 36 // Informs the renderer that the one if its notifications has closed. |
| 37 IPC_MESSAGE_ROUTED2(DesktopNotificationMsg_PostClose, | 37 IPC_MESSAGE_ROUTED2(DesktopNotificationMsg_PostClose, |
| 38 int /* notification_id */, | 38 int /* notification_id */, |
| 39 bool /* by_user */) | 39 bool /* by_user */) |
| 40 | 40 |
| 41 // Informs the renderer that one of its notifications was clicked on. | 41 // Informs the renderer that one of its notifications was clicked on. |
| 42 IPC_MESSAGE_ROUTED1(DesktopNotificationMsg_PostClick, | 42 IPC_MESSAGE_ROUTED1(DesktopNotificationMsg_PostClick, |
| 43 int /* notification_id */) | 43 int /* notification_id */) |
| 44 | 44 |
| 45 // Informs the renderer that the one if its notifications has closed. | 45 // Informs the renderer that the one if its notifications has closed. |
| 46 IPC_MESSAGE_ROUTED1(DesktopNotificationMsg_PermissionRequestDone, | 46 IPC_MESSAGE_ROUTED1(DesktopNotificationMsg_PermissionRequestDone, |
| 47 int /* request_id */) | 47 int /* request_id */) |
| 48 | 48 |
| 49 // Messages sent from the renderer to the browser. | 49 // Messages sent from the renderer to the browser. |
| 50 | 50 |
| 51 IPC_MESSAGE_ROUTED1(DesktopNotificationHostMsg_Show, | 51 IPC_MESSAGE_ROUTED1(DesktopNotificationHostMsg_Show, |
| 52 content::ShowDesktopNotificationHostMsgParams) | 52 content::ShowDesktopNotificationHostMsgParams) |
| 53 | 53 |
| 54 IPC_MESSAGE_ROUTED1(DesktopNotificationHostMsg_Cancel, | 54 IPC_MESSAGE_ROUTED1(DesktopNotificationHostMsg_Cancel, |
| 55 int /* notification_id */) | 55 int /* notification_id */) |
| 56 | 56 |
| 57 IPC_MESSAGE_ROUTED2(DesktopNotificationHostMsg_RequestPermission, | 57 IPC_MESSAGE_ROUTED2(DesktopNotificationHostMsg_RequestPermission, |
| 58 GURL /* origin */, | 58 GURL /* origin */, |
| 59 int /* callback_context */) | 59 int /* callback_context */) |
| 60 | 60 |
| 61 IPC_SYNC_MESSAGE_ROUTED1_1(DesktopNotificationHostMsg_CheckPermission, | 61 IPC_SYNC_MESSAGE_ROUTED1_1(DesktopNotificationHostMsg_CheckPermission, |
| 62 GURL /* origin */, | 62 GURL /* origin */, |
| 63 int /* permission_result */) | 63 int /* permission_result */) |
| OLD | NEW |