Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1112)

Unified Diff: content/common/platform_notification_messages.h

Issue 2151993002: [WebAPKs] Plumb service worker scope to notifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' into notification_scope Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/common/platform_notification_messages.h
diff --git a/content/common/platform_notification_messages.h b/content/common/platform_notification_messages.h
index 7f27b8b4168279463cb5ce5f714016de3a523def..56f4bb9e93145be8100e36bac6f60abc82e6268a 100644
--- a/content/common/platform_notification_messages.h
+++ b/content/common/platform_notification_messages.h
@@ -66,6 +66,15 @@ IPC_STRUCT_TRAITS_BEGIN(content::NotificationResources)
IPC_STRUCT_TRAITS_MEMBER(action_icons)
IPC_STRUCT_TRAITS_END()
+IPC_STRUCT_BEGIN(PlatformNotificationHostMsg_ShowPersistent_Params)
+ IPC_STRUCT_MEMBER(int, request_id)
+ IPC_STRUCT_MEMBER(int64_t, service_worker_registration_id)
+ IPC_STRUCT_MEMBER(GURL, service_worker_scope)
+ IPC_STRUCT_MEMBER(GURL, origin)
+ IPC_STRUCT_MEMBER(content::PlatformNotificationData, notification_data)
+ IPC_STRUCT_MEMBER(content::NotificationResources, notification_resources)
+IPC_STRUCT_END()
+
// Messages sent from the browser to the renderer.
// Informs the renderer that the browser has displayed the notification.
@@ -103,13 +112,9 @@ IPC_MESSAGE_CONTROL4(
content::PlatformNotificationData /* notification_data */,
content::NotificationResources /* notification_resources */)
-IPC_MESSAGE_CONTROL5(
+IPC_MESSAGE_CONTROL1(
PlatformNotificationHostMsg_ShowPersistent,
- int /* request_id */,
- int64_t /* service_worker_registration_id */,
- GURL /* origin */,
- content::PlatformNotificationData /* notification_data */,
- content::NotificationResources /* notification_resources */)
+ PlatformNotificationHostMsg_ShowPersistent_Params /* params */)
IPC_MESSAGE_CONTROL4(PlatformNotificationHostMsg_GetNotifications,
int /* request_id */,

Powered by Google App Engine
This is Rietveld 408576698