From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Tools/WebKitTestRunner/WebNotificationProvider.h | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'Tools/WebKitTestRunner/WebNotificationProvider.h') diff --git a/Tools/WebKitTestRunner/WebNotificationProvider.h b/Tools/WebKitTestRunner/WebNotificationProvider.h index fba2870fc..ccf8b1bce 100644 --- a/Tools/WebKitTestRunner/WebNotificationProvider.h +++ b/Tools/WebKitTestRunner/WebNotificationProvider.h @@ -26,9 +26,10 @@ #ifndef WebNotificationProvider_h #define WebNotificationProvider_h -#include -#include -#include +#include +#include +#include +#include #include namespace WTR { @@ -45,12 +46,15 @@ public: void removeNotificationManager(WKNotificationManagerRef); WKDictionaryRef notificationPermissions(); - void simulateWebNotificationClick(uint64_t notificationID); + void simulateWebNotificationClick(WKPageRef, uint64_t notificationID); void reset(); private: - WKRetainPtr m_notificationManager; - HashSet m_shownNotifications; + // Inverses of each other. + HashMap, HashSet> m_ownedNotifications; + HashMap m_owningManager; + + HashMap, uint64_t> m_localToGlobalNotificationIDMap; }; } -- cgit v1.2.1