| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 int /* notification_id */) | 52 int /* notification_id */) |
| 53 | 53 |
| 54 // Informs the renderer that the notification has been closed. | 54 // Informs the renderer that the notification has been closed. |
| 55 IPC_MESSAGE_CONTROL1(PlatformNotificationMsg_DidClose, | 55 IPC_MESSAGE_CONTROL1(PlatformNotificationMsg_DidClose, |
| 56 int /* notification_id */) | 56 int /* notification_id */) |
| 57 | 57 |
| 58 // Informs the renderer that the notification has been clicked on. | 58 // Informs the renderer that the notification has been clicked on. |
| 59 IPC_MESSAGE_CONTROL1(PlatformNotificationMsg_DidClick, | 59 IPC_MESSAGE_CONTROL1(PlatformNotificationMsg_DidClick, |
| 60 int /* notification_id */) | 60 int /* notification_id */) |
| 61 | 61 |
| 62 // Reply to PlatformNotificationHostMsg_ShowPersistent indicating that a |
| 63 // persistent notification has been shown on the platform (if |success| is |
| 64 // true), or that an unspecified error occurred. |
| 65 IPC_MESSAGE_CONTROL2(PlatformNotificationMsg_DidShowPersistent, |
| 66 int /* request_id */, |
| 67 bool /* success */) |
| 68 |
| 62 // Reply to PlatformNotificationHostMsg_GetNotifications sharing a vector of | 69 // Reply to PlatformNotificationHostMsg_GetNotifications sharing a vector of |
| 63 // available notifications per the request's constraints. | 70 // available notifications per the request's constraints. |
| 64 IPC_MESSAGE_CONTROL2(PlatformNotificationMsg_DidGetNotifications, | 71 IPC_MESSAGE_CONTROL2(PlatformNotificationMsg_DidGetNotifications, |
| 65 int /* request_id */, | 72 int /* request_id */, |
| 66 std::vector<PersistentNotificationInfo> | 73 std::vector<PersistentNotificationInfo> |
| 67 /* notifications */) | 74 /* notifications */) |
| 68 | 75 |
| 69 // Messages sent from the renderer to the browser. | 76 // Messages sent from the renderer to the browser. |
| 70 | 77 |
| 71 IPC_MESSAGE_CONTROL4(PlatformNotificationHostMsg_Show, | 78 IPC_MESSAGE_CONTROL4(PlatformNotificationHostMsg_Show, |
| 72 int /* notification_id */, | 79 int /* notification_id */, |
| 73 GURL /* origin */, | 80 GURL /* origin */, |
| 74 SkBitmap /* icon */, | 81 SkBitmap /* icon */, |
| 75 content::PlatformNotificationData /* notification_data */) | 82 content::PlatformNotificationData /* notification_data */) |
| 76 | 83 |
| 77 IPC_MESSAGE_CONTROL4(PlatformNotificationHostMsg_ShowPersistent, | 84 IPC_MESSAGE_CONTROL5(PlatformNotificationHostMsg_ShowPersistent, |
| 85 int /* request_id */, |
| 78 int64_t /* service_worker_registration_id */, | 86 int64_t /* service_worker_registration_id */, |
| 79 GURL /* origin */, | 87 GURL /* origin */, |
| 80 SkBitmap /* icon */, | 88 SkBitmap /* icon */, |
| 81 content::PlatformNotificationData /* notification_data */) | 89 content::PlatformNotificationData /* notification_data */) |
| 82 | 90 |
| 83 IPC_MESSAGE_CONTROL4(PlatformNotificationHostMsg_GetNotifications, | 91 IPC_MESSAGE_CONTROL4(PlatformNotificationHostMsg_GetNotifications, |
| 84 int /* request_id */, | 92 int /* request_id */, |
| 85 int64_t /* service_worker_registration_id */, | 93 int64_t /* service_worker_registration_id */, |
| 86 GURL /* origin */, | 94 GURL /* origin */, |
| 87 std::string /* filter_tag */) | 95 std::string /* filter_tag */) |
| 88 | 96 |
| 89 IPC_MESSAGE_CONTROL1(PlatformNotificationHostMsg_Close, | 97 IPC_MESSAGE_CONTROL1(PlatformNotificationHostMsg_Close, |
| 90 int /* notification_id */) | 98 int /* notification_id */) |
| 91 | 99 |
| 92 IPC_MESSAGE_CONTROL2(PlatformNotificationHostMsg_ClosePersistent, | 100 IPC_MESSAGE_CONTROL2(PlatformNotificationHostMsg_ClosePersistent, |
| 93 GURL /* origin */, | 101 GURL /* origin */, |
| 94 std::string /* persistent_notification_id */) | 102 std::string /* persistent_notification_id */) |
| 95 | 103 |
| 96 IPC_SYNC_MESSAGE_CONTROL1_1(PlatformNotificationHostMsg_CheckPermission, | 104 IPC_SYNC_MESSAGE_CONTROL1_1(PlatformNotificationHostMsg_CheckPermission, |
| 97 GURL /* origin */, | 105 GURL /* origin */, |
| 98 blink::WebNotificationPermission /* result */) | 106 blink::WebNotificationPermission /* result */) |
| OLD | NEW |