From cfd86b747d32ac22246a1aa908eaa720c63a88c1 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Wed, 7 Nov 2012 11:22:47 +0100 Subject: Imported WebKit commit 20271caf2e2c016d5cef40184cddeefeac4f1876 (http://svn.webkit.org/repository/webkit/trunk@133733) New snapshot that contains all previous fixes as well as build fix for latest QtMultimedia API changes. --- .../WebProcess/Notifications/WebNotificationManager.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Source/WebKit2/WebProcess/Notifications/WebNotificationManager.cpp') diff --git a/Source/WebKit2/WebProcess/Notifications/WebNotificationManager.cpp b/Source/WebKit2/WebProcess/Notifications/WebNotificationManager.cpp index fb42bcc43..35070e144 100644 --- a/Source/WebKit2/WebProcess/Notifications/WebNotificationManager.cpp +++ b/Source/WebKit2/WebProcess/Notifications/WebNotificationManager.cpp @@ -31,6 +31,7 @@ #if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS) #include "WebNotification.h" +#include "WebNotificationManagerMessages.h" #include "WebNotificationManagerProxyMessages.h" #include "WebPageProxyMessages.h" #include @@ -57,6 +58,9 @@ static uint64_t generateNotificationID() WebNotificationManager::WebNotificationManager(WebProcess* process) : m_process(process) { +#if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS) + m_process->addMessageReceiver(Messages::WebNotificationManager::messageReceiverName(), this); +#endif } WebNotificationManager::~WebNotificationManager() @@ -170,7 +174,7 @@ void WebNotificationManager::cancel(Notification* notification, WebPage* page) if (!notificationID) return; - m_process->connection()->send(Messages::WebNotificationManagerProxy::Cancel(notificationID), page->pageID()); + m_process->connection()->send(Messages::WebNotificationManagerProxy::Cancel(notificationID), 0); #else UNUSED_PARAM(notification); UNUSED_PARAM(page); @@ -185,7 +189,7 @@ void WebNotificationManager::clearNotifications(WebCore::ScriptExecutionContext* return; Vector& notificationIDs = it->value; - m_process->connection()->send(Messages::WebNotificationManagerProxy::ClearNotifications(notificationIDs), page->pageID()); + m_process->connection()->send(Messages::WebNotificationManagerProxy::ClearNotifications(notificationIDs), 0); size_t count = notificationIDs.size(); for (size_t i = 0; i < count; ++i) { RefPtr notification = m_notificationIDMap.take(notificationIDs[i]); @@ -211,7 +215,7 @@ void WebNotificationManager::didDestroyNotification(Notification* notification, m_notificationIDMap.remove(notificationID); removeNotificationFromContextMap(notificationID, notification); - m_process->connection()->send(Messages::WebNotificationManagerProxy::DidDestroyNotification(notificationID), page->pageID()); + m_process->connection()->send(Messages::WebNotificationManagerProxy::DidDestroyNotification(notificationID), 0); #else UNUSED_PARAM(notification); UNUSED_PARAM(page); -- cgit v1.2.1