diff options
author | peter@chromium.org <peter@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-30 14:25:32 +0000 |
---|---|---|
committer | peter@chromium.org <peter@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-30 14:25:32 +0000 |
commit | 945babb1f605b590a8644b2f1ec47ddfda71d573 (patch) | |
tree | 2e45fb181c22f530ed3659443bc3d7a9a3b3d6bf /content/shell/common | |
parent | 6d6579ad4ce4f339c4f7eaa2956b935fb44bc54f (diff) | |
download | chromium_src-945babb1f605b590a8644b2f1ec47ddfda71d573.zip chromium_src-945babb1f605b590a8644b2f1ec47ddfda71d573.tar.gz chromium_src-945babb1f605b590a8644b2f1ec47ddfda71d573.tar.bz2 |
Support layout testing Web Notifications from Document and Worker contexts.
Web Notifications are currently exercised by providing a custom notification
presenter as the TestRunner, but this solution isn't sufficient anymore now
that they will be available to Web Workers as well.
Instead, implement a mocked Notification Manager which is only available
in content_shell when running in layout test mode. This manager means we can
exercise the complete code-paths for both the Document and Worker scenarios,
yet still provide for mocked functionality available to both.
Note that this code isn't being used yet, pending on Blink switching over
to the new Web Notification permission path, which should be shortly after
this patch lands.
BUG=392187
Review URL: https://codereview.chromium.org/395883002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286513 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell/common')
-rw-r--r-- | content/shell/common/shell_messages.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/content/shell/common/shell_messages.h b/content/shell/common/shell_messages.h index 54e8a50..0be743f 100644 --- a/content/shell/common/shell_messages.h +++ b/content/shell/common/shell_messages.h @@ -98,6 +98,13 @@ IPC_MESSAGE_ROUTED2(ShellViewHostMsg_LoadURLForFrame, IPC_MESSAGE_ROUTED0(ShellViewHostMsg_ClearAllDatabases) IPC_MESSAGE_ROUTED1(ShellViewHostMsg_SetDatabaseQuota, int /* quota */) +IPC_SYNC_MESSAGE_ROUTED1_1(ShellViewHostMsg_CheckWebNotificationPermission, + GURL /* origin */, + int /* result */) +IPC_MESSAGE_ROUTED2(ShellViewHostMsg_GrantWebNotificationPermission, + GURL /* origin */, + bool /* permission_granted */) +IPC_MESSAGE_ROUTED0(ShellViewHostMsg_ClearWebNotificationPermissions) IPC_MESSAGE_ROUTED1(ShellViewHostMsg_AcceptAllCookies, bool /* accept */) IPC_MESSAGE_ROUTED0(ShellViewHostMsg_DeleteAllCookies) |