| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // Messages for platform-native notifications using the Web Notification API. | 5 // Messages for platform-native notifications using the Web Notification API. |
| 6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 IPC_STRUCT_TRAITS_MEMBER(data) | 59 IPC_STRUCT_TRAITS_MEMBER(data) |
| 60 IPC_STRUCT_TRAITS_MEMBER(actions) | 60 IPC_STRUCT_TRAITS_MEMBER(actions) |
| 61 IPC_STRUCT_TRAITS_END() | 61 IPC_STRUCT_TRAITS_END() |
| 62 | 62 |
| 63 IPC_STRUCT_TRAITS_BEGIN(content::NotificationResources) | 63 IPC_STRUCT_TRAITS_BEGIN(content::NotificationResources) |
| 64 IPC_STRUCT_TRAITS_MEMBER(notification_icon) | 64 IPC_STRUCT_TRAITS_MEMBER(notification_icon) |
| 65 IPC_STRUCT_TRAITS_MEMBER(badge) | 65 IPC_STRUCT_TRAITS_MEMBER(badge) |
| 66 IPC_STRUCT_TRAITS_MEMBER(action_icons) | 66 IPC_STRUCT_TRAITS_MEMBER(action_icons) |
| 67 IPC_STRUCT_TRAITS_END() | 67 IPC_STRUCT_TRAITS_END() |
| 68 | 68 |
| 69 IPC_STRUCT_BEGIN(PlatformNotificationHostMsg_ShowPersistent_Params) |
| 70 IPC_STRUCT_MEMBER(int, request_id) |
| 71 IPC_STRUCT_MEMBER(int64_t, service_worker_registration_id) |
| 72 IPC_STRUCT_MEMBER(GURL, service_worker_scope) |
| 73 IPC_STRUCT_MEMBER(GURL, origin) |
| 74 IPC_STRUCT_MEMBER(content::PlatformNotificationData, notification_data) |
| 75 IPC_STRUCT_MEMBER(content::NotificationResources, notification_resources) |
| 76 IPC_STRUCT_END() |
| 77 |
| 69 // Messages sent from the browser to the renderer. | 78 // Messages sent from the browser to the renderer. |
| 70 | 79 |
| 71 // Informs the renderer that the browser has displayed the notification. | 80 // Informs the renderer that the browser has displayed the notification. |
| 72 IPC_MESSAGE_CONTROL1(PlatformNotificationMsg_DidShow, | 81 IPC_MESSAGE_CONTROL1(PlatformNotificationMsg_DidShow, |
| 73 int /* notification_id */) | 82 int /* notification_id */) |
| 74 | 83 |
| 75 // Informs the renderer that the notification has been closed. | 84 // Informs the renderer that the notification has been closed. |
| 76 IPC_MESSAGE_CONTROL1(PlatformNotificationMsg_DidClose, | 85 IPC_MESSAGE_CONTROL1(PlatformNotificationMsg_DidClose, |
| 77 int /* notification_id */) | 86 int /* notification_id */) |
| 78 | 87 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 96 | 105 |
| 97 // Messages sent from the renderer to the browser. | 106 // Messages sent from the renderer to the browser. |
| 98 | 107 |
| 99 IPC_MESSAGE_CONTROL4( | 108 IPC_MESSAGE_CONTROL4( |
| 100 PlatformNotificationHostMsg_Show, | 109 PlatformNotificationHostMsg_Show, |
| 101 int /* notification_id */, | 110 int /* notification_id */, |
| 102 GURL /* origin */, | 111 GURL /* origin */, |
| 103 content::PlatformNotificationData /* notification_data */, | 112 content::PlatformNotificationData /* notification_data */, |
| 104 content::NotificationResources /* notification_resources */) | 113 content::NotificationResources /* notification_resources */) |
| 105 | 114 |
| 106 IPC_MESSAGE_CONTROL5( | 115 IPC_MESSAGE_CONTROL1( |
| 107 PlatformNotificationHostMsg_ShowPersistent, | 116 PlatformNotificationHostMsg_ShowPersistent, |
| 108 int /* request_id */, | 117 PlatformNotificationHostMsg_ShowPersistent_Params /* params */) |
| 109 int64_t /* service_worker_registration_id */, | |
| 110 GURL /* origin */, | |
| 111 content::PlatformNotificationData /* notification_data */, | |
| 112 content::NotificationResources /* notification_resources */) | |
| 113 | 118 |
| 114 IPC_MESSAGE_CONTROL4(PlatformNotificationHostMsg_GetNotifications, | 119 IPC_MESSAGE_CONTROL4(PlatformNotificationHostMsg_GetNotifications, |
| 115 int /* request_id */, | 120 int /* request_id */, |
| 116 int64_t /* service_worker_registration_id */, | 121 int64_t /* service_worker_registration_id */, |
| 117 GURL /* origin */, | 122 GURL /* origin */, |
| 118 std::string /* filter_tag */) | 123 std::string /* filter_tag */) |
| 119 | 124 |
| 120 IPC_MESSAGE_CONTROL1(PlatformNotificationHostMsg_Close, | 125 IPC_MESSAGE_CONTROL1(PlatformNotificationHostMsg_Close, |
| 121 int /* notification_id */) | 126 int /* notification_id */) |
| 122 | 127 |
| 123 IPC_MESSAGE_CONTROL2(PlatformNotificationHostMsg_ClosePersistent, | 128 IPC_MESSAGE_CONTROL2(PlatformNotificationHostMsg_ClosePersistent, |
| 124 GURL /* origin */, | 129 GURL /* origin */, |
| 125 int64_t /* persistent_notification_id */) | 130 int64_t /* persistent_notification_id */) |
| OLD | NEW |