|
Remove ShowDesktopNotificationHostMsgParams in favor of PlatformNotificationData.
This patch removes all uses of ShowDesktopNotificationHostMsgParams and replaces
it with a more directed PlatformNotificationData. The PlatformNotificationData
structure has the same content as the WebNotificationData structure in the Blink
API, and included are canonical conversion functions between the two.
The reason for this change is two-folded:
(1) The content/ layer now has the ability to initialize Web Notification
objects, whereas this previously could only be done by Blink. This means
that we have to carry all associated data around.
The primary user for this are Persistent Notifications, which can outlive
the page they were created by (and thereby the JavaScript objects).
(2) The Web Notification specification is being updated with new features, a
number of which will eventually have to be known to the browser process.
This makes future plumbing significantly clearer.
Also, the *Desktop*Notification.. name is outdated.
BUG= 432527
Committed: https://crrev.com/7329c2c1df2c08bf1dd7600731cc37a572181459
Cr-Commit-Position: refs/heads/master@{#308080}
Total comments: 2
Total comments: 2
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+390 lines, -175 lines) |
Patch |
|
M |
chrome/browser/notifications/desktop_notification_service.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/notifications/platform_notification_service_impl.h
|
View
|
1
2
|
2 chunks |
+8 lines, -3 lines |
0 comments
|
Download
|
|
M |
chrome/browser/notifications/platform_notification_service_impl.cc
|
View
|
1
2
|
4 chunks |
+12 lines, -8 lines |
0 comments
|
Download
|
|
M |
chrome/browser/notifications/platform_notification_service_unittest.cc
|
View
|
1
2
|
3 chunks |
+14 lines, -10 lines |
0 comments
|
Download
|
|
M |
content/browser/notifications/notification_event_dispatcher_impl.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
content/browser/notifications/notification_event_dispatcher_impl.cc
|
View
|
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
content/browser/notifications/notification_message_filter.h
|
View
|
|
2 chunks |
+9 lines, -3 lines |
0 comments
|
Download
|
|
M |
content/browser/notifications/notification_message_filter.cc
|
View
|
|
3 chunks |
+15 lines, -6 lines |
0 comments
|
Download
|
|
M |
content/browser/service_worker/service_worker_version.h
|
View
|
1
2
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/browser/service_worker/service_worker_version.cc
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
A |
content/child/notifications/notification_data_conversions.h
|
View
|
|
1 chunk |
+24 lines, -0 lines |
0 comments
|
Download
|
|
A |
content/child/notifications/notification_data_conversions.cc
|
View
|
|
1 chunk |
+48 lines, -0 lines |
0 comments
|
Download
|
|
A |
content/child/notifications/notification_data_conversions_unittest.cc
|
View
|
|
1 chunk |
+97 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/child/notifications/notification_manager.cc
|
View
|
|
3 chunks |
+19 lines, -27 lines |
0 comments
|
Download
|
|
M |
content/common/platform_notification_messages.h
|
View
|
1
2
3
4
|
2 chunks |
+19 lines, -10 lines |
0 comments
|
Download
|
|
M |
content/common/service_worker/service_worker_messages.h
|
View
|
1
2
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/content_child.gypi
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/content_common.gypi
|
View
|
1
2
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/content_tests.gypi
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
content/public/browser/notification_event_dispatcher.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/public/browser/platform_notification_service.h
|
View
|
|
3 chunks |
+8 lines, -3 lines |
0 comments
|
Download
|
|
A |
content/public/common/platform_notification_data.h
|
View
|
1
2
3
4
|
1 chunk |
+52 lines, -0 lines |
0 comments
|
Download
|
|
A |
content/public/common/platform_notification_data.cc
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
D |
content/public/common/show_desktop_notification_params.h
|
View
|
|
1 chunk |
+0 lines, -40 lines |
0 comments
|
Download
|
|
D |
content/public/common/show_desktop_notification_params.cc
|
View
|
|
1 chunk |
+0 lines, -16 lines |
0 comments
|
Download
|
|
M |
content/renderer/service_worker/service_worker_script_context.h
|
View
|
1
2
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/renderer/service_worker/service_worker_script_context.cc
|
View
|
1
2
|
2 chunks |
+3 lines, -13 lines |
0 comments
|
Download
|
|
M |
content/shell/browser/layout_test/layout_test_notification_manager.h
|
View
|
1
2
3
|
3 chunks |
+11 lines, -5 lines |
0 comments
|
Download
|
|
M |
content/shell/browser/layout_test/layout_test_notification_manager.cc
|
View
|
1
2
3
|
6 chunks |
+18 lines, -13 lines |
0 comments
|
Download
|
Total messages: 22 (5 generated)
|