diff options
author | peter@chromium.org <peter@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-29 22:40:09 +0000 |
---|---|---|
committer | peter@chromium.org <peter@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-29 22:40:09 +0000 |
commit | 4459599efe0c4b098232efe998c48bb66de3e7fc (patch) | |
tree | d8514ecc6a98abf98ddf1d285aa66c5d45a61364 /ipc | |
parent | 8112ead8d4f1473cc693db5eba0a7ffb9942c928 (diff) | |
download | chromium_src-4459599efe0c4b098232efe998c48bb66de3e7fc.zip chromium_src-4459599efe0c4b098232efe998c48bb66de3e7fc.tar.gz chromium_src-4459599efe0c4b098232efe998c48bb66de3e7fc.tar.bz2 |
Refactor 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
Review URL: https://codereview.chromium.org/381633005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286321 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/ipc_message_start.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ipc/ipc_message_start.h b/ipc/ipc_message_start.h index 59a0db9..bcfcf7c 100644 --- a/ipc/ipc_message_start.h +++ b/ipc/ipc_message_start.h @@ -105,6 +105,7 @@ enum IPCMessageStart { AecDumpMsgStart, OzoneGpuMsgStart, ChromeUtilityExtensionsMsgStart, + PlatformNotificationMsgStart, LastIPCMsgStart // Must come last. }; |