| 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> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "content/public/common/common_param_traits_macros.h" | 13 #include "content/public/common/common_param_traits_macros.h" |
| 14 #include "content/public/common/notification_resources.h" | 14 #include "content/public/common/notification_resources.h" |
| 15 #include "content/public/common/platform_notification_data.h" | 15 #include "content/public/common/platform_notification_data.h" |
| 16 #include "ipc/ipc_message_macros.h" | 16 #include "ipc/ipc_message_macros.h" |
| 17 #include "third_party/WebKit/public/platform/modules/permissions/permission_stat
us.mojom.h" | |
| 18 | 17 |
| 19 // Singly-included section for type definitions. | 18 // Singly-included section for type definitions. |
| 20 #ifndef CONTENT_COMMON_PLATFORM_NOTIFICATION_MESSAGES_H_ | 19 #ifndef CONTENT_COMMON_PLATFORM_NOTIFICATION_MESSAGES_H_ |
| 21 #define CONTENT_COMMON_PLATFORM_NOTIFICATION_MESSAGES_H_ | 20 #define CONTENT_COMMON_PLATFORM_NOTIFICATION_MESSAGES_H_ |
| 22 | 21 |
| 23 // Defines the pair of [persistent notification id] => [notification data] used | 22 // Defines the pair of [persistent notification id] => [notification data] used |
| 24 // when getting the notifications for a given Service Worker registration. | 23 // when getting the notifications for a given Service Worker registration. |
| 25 using PersistentNotificationInfo = | 24 using PersistentNotificationInfo = |
| 26 std::pair<int64_t, content::PlatformNotificationData>; | 25 std::pair<int64_t, content::PlatformNotificationData>; |
| 27 | 26 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 int64_t /* service_worker_registration_id */, | 116 int64_t /* service_worker_registration_id */, |
| 118 GURL /* origin */, | 117 GURL /* origin */, |
| 119 std::string /* filter_tag */) | 118 std::string /* filter_tag */) |
| 120 | 119 |
| 121 IPC_MESSAGE_CONTROL1(PlatformNotificationHostMsg_Close, | 120 IPC_MESSAGE_CONTROL1(PlatformNotificationHostMsg_Close, |
| 122 int /* notification_id */) | 121 int /* notification_id */) |
| 123 | 122 |
| 124 IPC_MESSAGE_CONTROL2(PlatformNotificationHostMsg_ClosePersistent, | 123 IPC_MESSAGE_CONTROL2(PlatformNotificationHostMsg_ClosePersistent, |
| 125 GURL /* origin */, | 124 GURL /* origin */, |
| 126 int64_t /* persistent_notification_id */) | 125 int64_t /* persistent_notification_id */) |
| 127 | |
| 128 IPC_SYNC_MESSAGE_CONTROL1_1( | |
| 129 PlatformNotificationHostMsg_CheckPermission, | |
| 130 GURL /* origin */, | |
| 131 blink::mojom::PermissionStatus /* permission_status */) | |
| OLD | NEW |