Chromium Code Reviews| Index: content/browser/notifications/notification_message_filter.cc |
| diff --git a/content/browser/notifications/notification_message_filter.cc b/content/browser/notifications/notification_message_filter.cc |
| index 9d2976ba8e6006fee2a574818d62056c7f29f076..4bd01a36cea2c3921468d61a14df2031112bc890 100644 |
| --- a/content/browser/notifications/notification_message_filter.cc |
| +++ b/content/browser/notifications/notification_message_filter.cc |
| @@ -40,6 +40,8 @@ bool NotificationMessageFilter::OnMessageReceived(const IPC::Message& message) { |
| OnShowPlatformNotification) |
| IPC_MESSAGE_HANDLER(PlatformNotificationHostMsg_ShowPersistent, |
| OnShowPersistentNotification) |
| + IPC_MESSAGE_HANDLER(PlatformNotificationHostMsg_GetNotifications, |
| + OnGetNotifications) |
| IPC_MESSAGE_HANDLER(PlatformNotificationHostMsg_Close, |
| OnClosePlatformNotification) |
| IPC_MESSAGE_HANDLER(PlatformNotificationHostMsg_ClosePersistent, |
| @@ -119,6 +121,21 @@ void NotificationMessageFilter::OnShowPersistentNotification( |
| icon, notification_data); |
| } |
| +void NotificationMessageFilter::OnGetNotifications( |
| + int request_id, |
| + int64_t service_worker_registration_id, |
| + const GURL& origin, |
| + const std::string& filter_tag) { |
| + // TODO(peter): Implement retrieval of persistent Web Notifications from the |
| + // database. Reply with an empty vector until this has been implemented. |
| + // Tracked in https://crbug.com/442143. |
| + NOTIMPLEMENTED(); |
|
johnme
2015/03/18 15:03:06
Depending on the NOTIMPLEMENTED_POLICY, this might
Peter Beverloo
2015/03/19 15:46:44
Good point. I removed the notice entirely, since I
|
| + |
| + Send(new PlatformNotificationMsg_DidGetNotifications( |
| + request_id, |
| + std::vector<PersistentNotificationInfo>())); |
| +} |
| + |
| void NotificationMessageFilter::OnClosePlatformNotification( |
| int notification_id) { |
| if (!close_closures_.count(notification_id)) |