DescriptionRefactor Web Notification permission requests.
As part of supporting Web Notifications in workers, only the ability to
request permission will be done through a WebFrame, all other operations
will be routed through Platform.
This patch introduces the NotificationPermissionDispatcher, (lazy) member
of RenderFrameImpl, handling that sole responsibility. The NPD will
replace the existing NotificationProvider in its entirety. However, while
moving functionality around, we need to maintain the existing code paths
and thus use this opportunity to rename DesktopNotifications to a more
generic PlatformNotifications, since they'll also be usable on Android.
When a website currently requests permission to display Web Notifications,
we show an infobar to the user, then send a message (without result!) to
the renderer process, where a synchronous IPC to the browser process will
fire in order to find out whether permission was actually granted. This
patch includes whether permission was granted in the first message.
BUG=392187, 398045
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=286321
Patch Set 1 #
Total comments: 3
Patch Set 2 : rebase #
Total comments: 2
Patch Set 3 : rebase #Patch Set 4 : #Patch Set 5 : #Messages
Total messages: 16 (0 generated)
|